MDL-32769 course: Moving the completion status to a new line

This commit is contained in:
Ankit Agarwal 2012-06-21 16:16:48 +08:00
parent 68b8cc84af
commit dce49c1c38
2 changed files with 6 additions and 3 deletions

View File

@ -364,15 +364,18 @@ abstract class format_section_renderer_base extends plugin_renderer_base {
$o.= $mod['name'].': '.$mod['count'];
$o.= html_writer::end_tag('span');
}
$o.= html_writer::end_tag('div');
// Output section completion data
if ($completioninfo->is_enabled() != COMPLETION_TRACKING_NONE && isloggedin() &&
!isguestuser() && $total !== 0) {
$o.= html_writer::start_tag('div', array('class' => 'section-summary-activities mdl-right'));
$o.= html_writer::start_tag('span', array('class' => 'activity-count'));
$o.= get_string("completionstatus")." $complete / $total";
$o.= get_string("progress")." $complete / $total";
$o.= html_writer::end_tag('span');
$o.= html_writer::end_tag('div');
}
$o.= html_writer::end_tag('div');
return $o;
}

View File

@ -252,7 +252,6 @@ $string['commentsrequirelogin'] = 'You need to login to view the comments';
$string['comparelanguage'] = 'Compare and edit current language';
$string['complete'] = 'Complete';
$string['completereport'] = 'Complete report';
$string['completionstatus'] = 'Completion status:';
$string['configuration'] = 'Configuration';
$string['confirm'] = 'Confirm';
$string['confirmed'] = 'Your registration has been confirmed';
@ -1332,6 +1331,7 @@ $string['previoussection'] = 'Previous section';
$string['primaryadminsetup'] = 'Setup administrator account';
$string['profile'] = 'Profile';
$string['profilenotshown'] = 'This profile description will not be shown until this person is enrolled in at least one course.';
$string['progress'] = 'Progress:';
$string['publicprofile'] = 'Public profile';
$string['publicsitefileswarning'] = 'Note: files placed here can be accessed by anyone';
$string['publicsitefileswarning2'] = 'Note: Files placed here can be accessed by anyone who knows (or can guess) the URL. For security reasons, it is recommended that any backup files are deleted immediately after restoring them.';