From 9fd59b5d38b33f88a10f4b2134ede0e169d4e3fa Mon Sep 17 00:00:00 2001 From: Kenneth Sequeira <33246109+kennethsequeira@users.noreply.github.com> Date: Thu, 16 Sep 2021 15:59:32 +0530 Subject: [PATCH 1/9] fix: spell check in Validation Message Change unedrscore to underscore --- community/overrides/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community/overrides/user.py b/community/overrides/user.py index 780400f9..e53d5fca 100644 --- a/community/overrides/user.py +++ b/community/overrides/user.py @@ -39,7 +39,7 @@ class CustomUser(User): frappe.throw(_("Username already exists.")) if not re.match("^[A-Za-z0-9_]*$", self.username): - frappe.throw(_("Username can only contain alphabets, numbers and unedrscore.")) + frappe.throw(_("Username can only contain alphabets, numbers and underscore.")) if underscore_condition: frappe.throw(_("First and Last character of username cannot be Underscore(_).")) From 29855a0cbc543c6a3bf93369377b9f82c4c5de36 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 16 Sep 2021 18:04:03 +0530 Subject: [PATCH 2/9] fix: issues --- community/lms/widgets/Reviews.html | 20 +++++++++++++++----- community/public/css/style.css | 13 +++++++++---- community/templates/quiz.html | 2 +- community/www/batch/learn.js | 3 ++- 4 files changed, 27 insertions(+), 11 deletions(-) diff --git a/community/lms/widgets/Reviews.html b/community/lms/widgets/Reviews.html index 8fe25df4..b0aecb4c 100644 --- a/community/lms/widgets/Reviews.html +++ b/community/lms/widgets/Reviews.html @@ -1,16 +1,15 @@ {% if not course.upcoming %}
{% set reviews = course.get_reviews() %} - {% if reviews | length or course.is_eligible_to_review(membership) %}
Reviews - {% if course.is_eligible_to_review(membership) %} + {% if course.is_eligible_to_review(membership) and reviews | length %} Write a review {% endif %}
- {% endif %} + {% if reviews | length %}
{% for review in reviews %} @@ -36,9 +35,20 @@
{% endfor %}
+ {% else %}
- No Reviews +
+ No Reviews +
+ There are no reviews for this course. +
+ {% if course.is_eligible_to_review(membership) %} + + Write a review + + {% endif %} +
{% endif %} @@ -48,7 +58,7 @@