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:
David Mudrak 2011-11-03 13:51:45 +01:00
parent f17bb885e9
commit 0455c99864

View File

@ -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'];
}
}
}