Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
problem-builder
Commits
2e212b5c
Commit
2e212b5c
authored
Mar 19, 2014
by
Alan Boudreault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace correct icon png to FA icon for the 'completed' indicator
parent
082298fd
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
8 deletions
+6
-8
mentoring/mentoring.py
+1
-5
mentoring/public/css/mentoring.css
+1
-1
mentoring/public/img/correct-icon.png
+0
-0
mentoring/templates/html/mentoring.html
+3
-1
mentoring/templates/html/mentoring_progress.html
+1
-1
No files found.
mentoring/mentoring.py
View file @
2e212b5c
...
...
@@ -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'
)
...
...
mentoring/public/css/mentoring.css
View file @
2e212b5c
...
...
@@ -50,5 +50,5 @@
}
.mentoring
.progress
.indicator
.checkmark
{
margin-top
:
25px
;
color
:
#006600
;
}
mentoring/public/img/correct-icon.png
deleted
100644 → 0
View file @
082298fd
224 Bytes
mentoring/templates/html/mentoring.html
View file @
2e212b5c
...
...
@@ -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>
mentoring/templates/html/mentoring_progress.html
View file @
2e212b5c
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment