MDL-32769 course: Moving the completion status to a new line
authorAnkit Agarwal <ankit@moodle.com>
Thu, 21 Jun 2012 08:16:48 +0000 (16:16 +0800)
committerAnkit Agarwal <ankit@moodle.com>
Thu, 21 Jun 2012 08:16:48 +0000 (16:16 +0800)
course/format/renderer.php
lang/en/moodle.php

index 83a2e4b..77caeda 100644 (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;
     }
 
index b1699a3..2419f01 100644 (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.';