From 08a4c0271535bfb24a82a07d6e881cd2b9bab470 Mon Sep 17 00:00:00 2001
From: adityacp
Date: Mon, 8 Jan 2018 17:43:56 +0530
Subject: Change in css and templates
- Allow horizontal scroll for sidebar in dashboard.css
- Change templates to display all modules
- Change error messages in course template
---
yaksh/templates/yaksh/complete.html | 4 +-
yaksh/templates/yaksh/courses.html | 14 ++---
yaksh/templates/yaksh/question.html | 67 +++++++++++----------
yaksh/templates/yaksh/show_video.html | 109 ++++++++++++++++++++++++----------
4 files changed, 123 insertions(+), 71 deletions(-)
(limited to 'yaksh/templates')
diff --git a/yaksh/templates/yaksh/complete.html b/yaksh/templates/yaksh/complete.html
index d0b7e4d..e4317fe 100644
--- a/yaksh/templates/yaksh/complete.html
+++ b/yaksh/templates/yaksh/complete.html
@@ -39,12 +39,12 @@ width="80" alt="YAKSH">{% endblock %}
Home
{% if module_id and not user == "moderator" %}
{% if first_unit %}
- Next Unit
+ Next
{% else %}
- Next Unit
+ Next
diff --git a/yaksh/templates/yaksh/courses.html b/yaksh/templates/yaksh/courses.html
index b6b9f7e..a1fd48a 100644
--- a/yaksh/templates/yaksh/courses.html
+++ b/yaksh/templates/yaksh/courses.html
@@ -75,7 +75,7 @@
Closed
{% endif %}
-
Unit Name | +Unit Type | +
---|---|
+ {% if unit.type == "quiz" %} + {{unit.quiz.description}} + {% else %} + {{unit.lesson.name}} + {% endif %} + | ++ {% if unit.type == "quiz" %} + {% if unit.quiz.is_exercise %} + Exercise + {% else %} + Quiz + {% endif %} + {% else %} + Lesson + {% endif %} + | +