Skip to content

Commit

Permalink
MDL-32769 course: Moving the completion status to a new line
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal committed Jun 21, 2012
1 parent 68b8cc8 commit dce49c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions course/format/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,15 +364,18 @@ private function section_activity_summary($section, $course, $mods) {
$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;
}

Expand Down
2 changes: 1 addition & 1 deletion lang/en/moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@
$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';
Expand Down Expand Up @@ -1332,6 +1331,7 @@
$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.';
Expand Down

0 comments on commit dce49c1

Please sign in to comment.