From 2ec76277dcd2f6d2efe771aa3f9324cdc352e457 Mon Sep 17 00:00:00 2001 From: Michelle Melton Date: Tue, 8 Oct 2019 13:55:54 -0400 Subject: [PATCH] MDL-64169 course: fix padding when display on one section per page (amended to keep the $o.= consistent with surrounding code) --- course/format/renderer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/format/renderer.php b/course/format/renderer.php index c474790d4b8..b033633a73f 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -514,7 +514,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base { // Output section activities summary: $o = ''; - $o.= html_writer::start_tag('div', array('class' => 'section-summary-activities mdl-right')); + $o.= html_writer::start_tag('div', array('class' => 'section-summary-activities pr-2 mdl-right')); foreach ($sectionmods as $mod) { $o.= html_writer::start_tag('span', array('class' => 'activity-count')); $o.= $mod['name'].': '.$mod['count']; @@ -528,7 +528,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base { $a->complete = $complete; $a->total = $total; - $o.= html_writer::start_tag('div', array('class' => 'section-summary-activities mdl-right')); + $o.= html_writer::start_tag('div', array('class' => 'section-summary-activities pr-2 mdl-right')); $o.= html_writer::tag('span', get_string('progresstotal', 'completion', $a), array('class' => 'activity-count')); $o.= html_writer::end_tag('div'); }