Commit 2e212b5c by Alan Boudreault

Replace correct icon png to FA icon for the 'completed' indicator

parent 082298fd
......@@ -74,8 +74,6 @@ class MentoringBlock(XBlockWithLightChildren):
fragment, named_children = self.get_children_fragment(context, view_name='mentoring_view',
not_instance_of=MentoringMessageBlock)
correct_icon_url = self.runtime.local_resource_url(self, 'public/img/correct-icon.png')
fragment.add_content(render_template('templates/html/mentoring.html', {
'self': self,
'named_children': named_children,
......@@ -85,9 +83,7 @@ class MentoringBlock(XBlockWithLightChildren):
fragment.add_javascript_url(
self.runtime.local_resource_url(self, 'public/js/vendor/underscore-min.js'))
fragment.add_javascript_url(self.runtime.local_resource_url(self, 'public/js/mentoring.js'))
fragment.add_resource(load_resource('templates/html/mentoring_progress.html').format(
completed=correct_icon_url),
"text/html")
fragment.add_resource(load_resource('templates/html/mentoring_progress.html'), "text/html")
fragment.initialize_js('MentoringBlock')
......
......@@ -50,5 +50,5 @@
}
.mentoring .progress .indicator .checkmark {
margin-top: 25px;
color: #006600;
}
......@@ -7,10 +7,12 @@
{{c.body_html|safe}}
{% endfor %}
{% if self.display_submit %}
<input type="button" value="Submit" class="submit"></input>
<div class="submit">
<input type="button" value="Submit"></input>
<span class="progress" data-completed="{{ self.completed }}">
<span class='indicator'></span>
</span>
</div>
{% endif %}
<div class="messages"></div>
</div>
<script type="text/template" id="xblock-progress-template">
<% if (completed === "True") {{ %>
<img src="{completed}" class="checkmark" alt="Completed">
<i class="icon-ok icon-2x checkmark"></i>
<% }} %>
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment