From 882fe5cdaee8bc61e51f6626cc3941356905bb61 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 3 Dec 2020 14:33:49 +0530 Subject: Minor UI change in course discussion forum --- yaksh/templates/yaksh/course_added_modules.html | 2 +- yaksh/templates/yaksh/course_forum.html | 3 ++- yaksh/templates/yaksh/lessons_forum.html | 26 ++++++++++++++++++++----- yaksh/templates/yaksh/sidebar.html | 18 ++++++++++++----- yaksh/views.py | 4 ++++ 5 files changed, 41 insertions(+), 12 deletions(-) (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/course_added_modules.html b/yaksh/templates/yaksh/course_added_modules.html index 80d87c0..b0662dd 100644 --- a/yaksh/templates/yaksh/course_added_modules.html +++ b/yaksh/templates/yaksh/course_added_modules.html @@ -100,7 +100,7 @@ ---- {% else %} {% get_lesson_views course.id unit.lesson.id as views %} - {{views.0}} views out of {{views.1}} + {{views.0}} completed out of {{views.1}} {% endif %} diff --git a/yaksh/templates/yaksh/course_forum.html b/yaksh/templates/yaksh/course_forum.html index b98688b..b352654 100644 --- a/yaksh/templates/yaksh/course_forum.html +++ b/yaksh/templates/yaksh/course_forum.html @@ -5,7 +5,6 @@ {% endblock title %} {% block content %}
- {% include "yaksh/sidebar.html" %}

{{course.name}}

@@ -69,6 +68,8 @@

+ {% include "yaksh/sidebar.html" %} +
{% with objects as posts %} {% if posts %}
diff --git a/yaksh/templates/yaksh/lessons_forum.html b/yaksh/templates/yaksh/lessons_forum.html index 58fb360..26825b9 100644 --- a/yaksh/templates/yaksh/lessons_forum.html +++ b/yaksh/templates/yaksh/lessons_forum.html @@ -5,8 +5,11 @@ {% endblock title %} {% block content %}
- {% include "yaksh/sidebar.html" %}
+
+

{{course.name}}

+
Discussion Forum
+
{% if moderator %} @@ -20,11 +23,24 @@ {% endif %}
- {% if posts %} + {% if messages %}
-

{{course.name}}

-
Discussion Forum
-
+
+ {% for message in messages %} +
+ + {{ message }} +
+ {% endfor %} +
+
+ {% endif %} +
+ {% include "yaksh/sidebar.html" %} +
+ {% if posts %} diff --git a/yaksh/templates/yaksh/sidebar.html b/yaksh/templates/yaksh/sidebar.html index 7d0ac74..5808608 100644 --- a/yaksh/templates/yaksh/sidebar.html +++ b/yaksh/templates/yaksh/sidebar.html @@ -1,8 +1,16 @@ -