From ac0436841ba144950472ee53f1d3a85188b2fe76 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Thu, 10 Jan 2019 16:15:17 +0530 Subject: Remove duplicate progress bars (Units/Lessons should not have progress bars) --- yaksh/templates/user.html | 1 - yaksh/templates/yaksh/course_modules.html | 19 +++---------------- 2 files changed, 3 insertions(+), 17 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/user.html b/yaksh/templates/user.html index db65195..4ded0a3 100644 --- a/yaksh/templates/user.html +++ b/yaksh/templates/user.html @@ -28,7 +28,6 @@ Change Password Logout - diff --git a/yaksh/templates/yaksh/course_modules.html b/yaksh/templates/yaksh/course_modules.html index 990c843..917f78c 100644 --- a/yaksh/templates/yaksh/course_modules.html +++ b/yaksh/templates/yaksh/course_modules.html @@ -110,15 +110,15 @@ {% get_module_status user module course as module_status %} {% if module_status == "completed" %}
-
100% completed
+
{{ percent }} % completed
{% elif module_status == "inprogress" %}
-
50% completed
+
{{ percent }} % completed
{% else %}
-
0% completed
+
{{ percent }} % completed
{% endif %} @@ -176,19 +176,6 @@ ------ {% endif %} - -
- {% if percent <= 50 %} -
- {% elif percent <= 75 %} -
- {% else %} -
- {% endif %} - {{percent}}% Completed -
-
- {% endfor %} -- cgit