MDL-64169 course: fix padding when display on one section per page
(amended to keep the $o.= consistent with surrounding code)
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
5e7c5b9cec
commit
2ec76277dc
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user