From 242ba89b95f899d2f5d7f4876693f36c4eefe5ab Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 4 May 2022 19:10:40 +0530 Subject: [PATCH] fix: course card cleanup --- lms/lms/widgets/Reviews.html | 18 +++++++++--------- lms/www/courses/course.html | 9 ++++----- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/lms/lms/widgets/Reviews.html b/lms/lms/widgets/Reviews.html index 9b9cb430..b91ce99f 100644 --- a/lms/lms/widgets/Reviews.html +++ b/lms/lms/widgets/Reviews.html @@ -60,21 +60,21 @@
- + {{ review.owner_details.full_name }} -
- {% for i in [1, 2, 3, 4, 5] %} - - - - {% endfor %} -
+
frappe.utils.pretty_date(review.creation)
-
frappe.utils.pretty_date(review.creation)
+
+ {% for i in [1, 2, 3, 4, 5] %} + + + + {% endfor %} +
diff --git a/lms/www/courses/course.html b/lms/www/courses/course.html index 25d48373..f67ebe93 100644 --- a/lms/www/courses/course.html +++ b/lms/www/courses/course.html @@ -49,7 +49,7 @@ {% macro CourseCardWide(course) %}
-
+
{% for tag in get_tags(course.name) %}
{{ tag }}
{% endfor %} @@ -70,7 +70,7 @@
{% endif %} -
+
Instructors:
{% for instructor in get_instructors(course.name) %}
@@ -94,7 +94,7 @@ {% endif %}
-
{{ course.title }}
+
{{ course.title }}
{{ _("You have opted to be notified for this course. You will receive an email when the course becomes available.") }} @@ -111,8 +111,7 @@ {{ _("Your course is currently under review. Once the review is complete, the System Admins will publish it on the website.") }}
{% endif %} - - {% if no_of_attempts >= course.max_attempts %} + {% if no_of_attempts and no_of_attempts >= course.max_attempts %}

{{ _("You have exceeded the maximum number of attempts allowed to appear for evaluations of this course.") }}

{% endif %}