From 0455c99864d0e225e4b702c86bf94bee569a65e9 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Thu, 3 Nov 2011 13:51:45 +0100 Subject: [PATCH] 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. --- grade/report/user/lib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grade/report/user/lib.php b/grade/report/user/lib.php index 22791e1d666..3cb20f6b0a2 100644 --- a/grade/report/user/lib.php +++ b/grade/report/user/lib.php @@ -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']; + } } }