mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-34887: Add hyperlinks to names in the Assignment's grading table
This commit is contained in:
parent
c92d6f417c
commit
a1d31f73fa
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user