MDL-54865 grade: student name hyperlinked in gradebook user report

In the Gradebook, User report, the student's name (at the top) is a hyperlink
to that student's account. In most places where a student's name shows
(e.g. the Grader report) it is most often a hyperlink.
This commit is contained in:
Luca Bösch
2016-06-23 04:22:10 +00:00
committed by Ryan Wyllie
parent 49619ce243
commit 013abd64cd
+2 -1
View File
@@ -1039,7 +1039,8 @@ function print_grade_page_head($courseid, $active_type, $active_plugin=null,
if (isset($user)) {
$output = $OUTPUT->context_header(
array(
'heading' => fullname($user),
'heading' => html_writer::link(new moodle_url('/user/view.php', array('id' => $user->id,
'course' => $courseid)), fullname($user)),
'user' => $user,
'usercontext' => context_user::instance($user->id)
), 2