MDL-34887: Add hyperlinks to names in the Assignment's grading table

This commit is contained in:
Raymond Wijaya 2012-08-17 12:34:16 +08:00
parent c92d6f417c
commit a1d31f73fa

View File

@ -287,13 +287,15 @@ class assign_grading_table extends table_sql implements renderable {
}
/**
* Format a user record for display (don't link to profile)
* Format a user record for display (link to profile)
*
* @param stdClass $row
* @return string
*/
function col_fullname($row) {
return fullname($row);
$courseid = $this->assignment->get_course()->id;
$link= new moodle_url('/user/view.php', array('id' =>$row->id, 'course'=>$courseid));
return $this->output->action_link($link, fullname($row));
}
/**