From 4547e98c3c80585c07327f7be3f2672d8708749f Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 27 Jul 2018 13:55:01 +1200 Subject: [PATCH] Move lowgrade report link to after time based reports. --- renderer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/renderer.php b/renderer.php index 775268e..a2d76c2 100644 --- a/renderer.php +++ b/renderer.php @@ -202,12 +202,12 @@ class mod_attendance_renderer extends plugin_renderer_base { protected function render_view_controls(attendance_filter_controls $fcontrols) { $views[ATT_VIEW_ALL] = get_string('all', 'attendance'); $views[ATT_VIEW_ALLPAST] = get_string('allpast', 'attendance'); - if ($fcontrols->reportcontrol && $fcontrols->att->grade > 0) { - $views[ATT_VIEW_NOTPRESENT] = get_string('lowgrade', 'attendance'); - } $views[ATT_VIEW_MONTHS] = get_string('months', 'attendance'); $views[ATT_VIEW_WEEKS] = get_string('weeks', 'attendance'); $views[ATT_VIEW_DAYS] = get_string('days', 'attendance'); + if ($fcontrols->reportcontrol && $fcontrols->att->grade > 0) { + $views[ATT_VIEW_NOTPRESENT] = get_string('lowgrade', 'attendance'); + } if ($fcontrols->reportcontrol) { $views[ATT_VIEW_SUMMARY] = get_string('summary', 'attendance'); }