mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-29920 User report may display the grade analysis link, too
The original idea was to use the link in the row header (the activity link). However, for both unified user experience and the overall patch design reasons, I finally decided not to alter the activity link but to append the analysis icon. The user experience should be the same as in the grader report.
This commit is contained in:
parent
f17bb885e9
commit
0455c99864
@ -393,6 +393,10 @@ class grade_report_user extends grade_report {
|
||||
$data['grade']['class'] = $class;
|
||||
$gradeval = $this->blank_hidden_total($this->courseid, $grade_grade->grade_item, $gradeval);
|
||||
$data['grade']['content'] = grade_format_gradevalue($gradeval, $grade_grade->grade_item, true);
|
||||
|
||||
if ($this->get_pref('showanalysisicon') and !is_null($gradeval)) {
|
||||
$data['grade']['content'] = $this->gtree->get_grade_analysis_icon($grade_grade) . $data['grade']['content'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user