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 committed by Dan Poltawski
parent b747690361
commit 8c74ab8623

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 * @param stdClass $row
* @return string * @return string
*/ */
function col_fullname($row) { 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));
} }
/** /**