mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-34887: Add hyperlinks to names in the Assignment's grading table
This commit is contained in:
parent
b747690361
commit
8c74ab8623
1 changed files with 4 additions and 2 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue