From 67d4f84d3274ffce449073d1209f29943cfccf06 Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 16 Jan 2018 16:23:42 +0530 Subject: Change template, urls.py, views.py - Change show_video.html to empty module - Add condition to check if module is completed for the corresponding unit --- yaksh/templates/yaksh/show_video.html | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/show_video.html b/yaksh/templates/yaksh/show_video.html index f4b59ac..17f9d86 100644 --- a/yaksh/templates/yaksh/show_video.html +++ b/yaksh/templates/yaksh/show_video.html @@ -64,6 +64,7 @@ {% if learning_module.html_data%}
{% endif %} + {% if learning_module.get_learning_units %}

Following are the units in this modules

@@ -95,13 +96,23 @@ {% endfor %}
+ {% else %} +

No Lessons/Quizzes Found

+ {% endif %}
- Start - - - + {% if first_unit %} + Start + + + + {% else %} + Next + + + + {% endif %}
{% else %}
-- cgit