Skip to content

Commit

Permalink
MDL-58138 completion: rebase on font-awesome changes.
Browse files Browse the repository at this point in the history
Part of MDL-58138 epic
  • Loading branch information
snake committed Apr 19, 2017
1 parent b17ee68 commit 6b3b9c1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions completion/classes/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function get_completion_detail($mod) {

case COMPLETION_TRACKING_MANUAL:
$strings['string'] = get_string('manual');
$strings['icon'] = $OUTPUT->pix_url('i/completion-manual-enabled')->out();
$strings['icon'] = $OUTPUT->pix_icon('i/completion-manual-y', get_string('completion_manual', 'completion'));
break;

case COMPLETION_TRACKING_AUTOMATIC:
Expand All @@ -148,7 +148,7 @@ private function get_completion_detail($mod) {
}
}

$strings['icon'] = $OUTPUT->pix_url('i/completion-auto-enabled')->out();
$strings['icon'] = $OUTPUT->pix_icon('i/completion-auto-y', get_string('completion_automatic', 'completion'));
break;

default:
Expand Down Expand Up @@ -213,7 +213,7 @@ public function get_activities_and_resources() {
$canmanage = has_capability('moodle/course:manageactivities', $coursecontext);
$course = get_course($this->courseid);
foreach ($data->modules as $module) {
$module->icon = $OUTPUT->pix_url('icon', $module->name)->out();
$module->icon = $OUTPUT->image_url('icon', $module->name)->out();
$module->formattedname = format_string(get_string('modulenameplural', 'mod_' . $module->name),
true, ['context' => $coursecontext]);
$module->canmanage = $canmanage && \course_allowed_module($course, $module->name);
Expand Down
10 changes: 5 additions & 5 deletions course/templates/activityinstance.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
}}
{{#activities}}
<div class="row m-b-1">
<div class="row m-b-1 row-fluid">
<div class="activityinstance col-sm-6 span6">
<div class="mod-indent-outer"></div>
<div>
Expand All @@ -47,16 +47,16 @@
</a>
</div>
</div>
<div class="activity-completionstatus col-sm-6" id="completionstatus_{{cmid}}">
<div class="col-sm-1">
<div class="activity-completionstatus col-sm-6 span6" id="completionstatus_{{cmid}}">
<div class="col-sm-1 span1 p-l-0">
{{#completionstatus.icon}}
<img src="{{completionstatus.icon}}" class="m-r-2" alt=" " role="presentation">
{{{completionstatus.icon}}}
{{/completionstatus.icon}}
{{^completionstatus.icon}}
<span class="m-r-3"></span>
{{/completionstatus.icon}}
</div>
<div class="col-sm-11">
<div class="col-sm-11 span11 p-l-0">
<span class="text-muted muted">{{{completionstatus.string}}}</span>
</div>
</div>
Expand Down
12 changes: 6 additions & 6 deletions course/templates/defaultactivitycompletion.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@
{{#modules}}
{{#canmanage}}
<div class="module-section m-b-1">
<div class="row m-b-1">
<div class="col-sm-6">
<div class="row m-b-1 row-fluid">
<div class="col-sm-6 span6">
<label class="accesshide" for="modtype_{{id}}">Select {{formattedname}}</label>
<input id="modtype_{{id}}" type="checkbox" class="m-r-1" name="modids[]" value="{{id}}" aria-label="{{#str}}checkactivity, completion, {{formattedname}}{{/str}}">
<img src="{{icon}}" alt=" " role="presentation" />
<span>{{formattedname}}</span>
</div>
<div class="activity-completionstatus col-sm-6">
<div class="col-sm-1">
<div class="activity-completionstatus col-sm-6 span6">
<div class="col-sm-1 span1 p-l-0">
{{#completionstatus.icon}}
<img src="{{completionstatus.icon}}" class="m-r-2" alt=" " role="presentation">
{{{completionstatus.icon}}}
{{/completionstatus.icon}}
{{^completionstatus.icon}}
<span class="m-r-3"></span>
{{/completionstatus.icon}}
</div>
<div class="col-sm-11">
<div class="col-sm-11 span11 p-l-0">
<span class="text-muted muted">{{{completionstatus.string}}}</span>
</div>
</div>
Expand Down

0 comments on commit 6b3b9c1

Please sign in to comment.