From c0d4f199ed70fe7105b928dc9ce27b2f6f94b40a Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Fri, 11 Jan 2019 15:03:37 +0530 Subject: Fixes check marks rendering incorrectly on Unit Completion. - This commit fixes check marks rendering incorrectly after unit completion on Start Module Page. --- yaksh/templates/yaksh/show_video.html | 63 +++++++++++++++++------------------ 1 file changed, 30 insertions(+), 33 deletions(-) (limited to 'yaksh/templates') 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}} {% for unit in module.get_learning_units %} - - {% if unit.type == "quiz" %} - - {% if status == "completed" %} - - {% else %} - - {% endif %} - {% get_unit_status course module unit user as status %} - {{ unit.quiz.description }} - {% if unit.id == current_unit.id %} - - - {% endif %} - - {% else %} - - {% if status == "completed" %} - - {% else %} - - {% endif %} - {% get_unit_status course module unit user as status %} - - - {{ unit.lesson.name }} - {% if unit.id == current_unit.id %} - - - {% endif %} - - {% endif %} - + {% get_unit_status course module unit user as status %} + + {% if unit.type == "quiz" %} + + {% if status == "completed" %} + + {% else %} + + {% endif %} + {{ unit.quiz.description }} + {% if unit.id == current_unit.id %} + + + {% endif %} + + {% else %} + + {% if status == "completed" %} + + {% else %} + + {% endif %} + {{ unit.lesson.name }} + {% if unit.id == current_unit.id %} + + + {% endif %} + + {% endif %} + {% endfor %} -- cgit