summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorCruiseDevice2019-01-11 15:03:37 +0530
committerCruiseDevice2019-01-11 15:03:37 +0530
commitc0d4f199ed70fe7105b928dc9ce27b2f6f94b40a (patch)
treeef72966f158cdd921150f3992c8cbbad73f99853 /yaksh
parent75c5ed2569715610dd0d4864659501d101eb640d (diff)
downloadonline_test-c0d4f199ed70fe7105b928dc9ce27b2f6f94b40a.tar.gz
online_test-c0d4f199ed70fe7105b928dc9ce27b2f6f94b40a.tar.bz2
online_test-c0d4f199ed70fe7105b928dc9ce27b2f6f94b40a.zip
Fixes check marks rendering incorrectly on Unit Completion.
- This commit fixes check marks rendering incorrectly after unit completion on Start Module Page.
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/templates/yaksh/show_video.html63
1 files changed, 30 insertions, 33 deletions
diff --git a/yaksh/templates/yaksh/show_video.html b/yaksh/templates/yaksh/show_video.html
index 575c296..9f92bc3 100644
--- a/yaksh/templates/yaksh/show_video.html
+++ b/yaksh/templates/yaksh/show_video.html
@@ -25,39 +25,36 @@
{{module}}
</a>
{% for unit in module.get_learning_units %}
- <span id="menudrop">
- {% if unit.type == "quiz" %}
- <a href="{{ URL_ROOT }}/exam/start/{{unit.quiz.questionpaper_set.get.id}}/{{module.id}}/{{course.id}}" class="list-group-item" data-parent="#menu1">
- {% if status == "completed" %}
- <i class="fa fa-check-square yakshgreen"></i>
- {% else %}
- <i class="fa fa-square-o"></i>
- {% endif %}
- {% get_unit_status course module unit user as status %}
- {{ unit.quiz.description }}
- {% if unit.id == current_unit.id %}
- <i class="fa fa-thumb-tack yakshred" data-toggle="tooltip" title="Currently on">
- </i>
- {% endif %}
- </a>
- {% else %}
- <a href="{{ URL_ROOT }}/exam/show_lesson/{{unit.lesson.id}}/{{module.id}}/{{course.id}}" class="list-group-item" data-parent="#menu1">
- {% if status == "completed" %}
- <i class="fa fa-check-square yakshgreen"></i>
- {% else %}
- <i class="fa fa-square-o"></i>
- {% endif %}
- {% get_unit_status course module unit user as status %}
-
-
- {{ unit.lesson.name }}
- {% if unit.id == current_unit.id %}
- <i class="fa fa-thumb-tack yakshred" data-toggle="tooltip" title="Currently on">
- </i>
- {% endif %}
- </a>
- {% endif %}
- </span>
+ {% get_unit_status course module unit user as status %}
+ <span id="menudrop">
+ {% if unit.type == "quiz" %}
+ <a href="{{ URL_ROOT }}/exam/start/{{unit.quiz.questionpaper_set.get.id}}/{{module.id}}/{{course.id}}" class="list-group-item" data-parent="#menu1">
+ {% if status == "completed" %}
+ <i class="fa fa-check-square yakshgreen"></i>
+ {% else %}
+ <i class="fa fa-square-o"></i>
+ {% endif %}
+ {{ unit.quiz.description }}
+ {% if unit.id == current_unit.id %}
+ <i class="fa fa-thumb-tack yakshred" data-toggle="tooltip" title="Currently on">
+ </i>
+ {% endif %}
+ </a>
+ {% else %}
+ <a href="{{ URL_ROOT }}/exam/show_lesson/{{unit.lesson.id}}/{{module.id}}/{{course.id}}" class="list-group-item" data-parent="#menu1">
+ {% if status == "completed" %}
+ <i class="fa fa-check-square yakshgreen"></i>
+ {% else %}
+ <i class="fa fa-square-o"></i>
+ {% endif %}
+ {{ unit.lesson.name }}
+ {% if unit.id == current_unit.id %}
+ <i class="fa fa-thumb-tack yakshred" data-toggle="tooltip" title="Currently on">
+ </i>
+ {% endif %}
+ </a>
+ {% endif %}
+ </span>
{% endfor %}
</div>