diff --git a/lms/lms/widgets/CourseCard.html b/lms/lms/widgets/CourseCard.html index e601811a..a7555a65 100644 --- a/lms/lms/widgets/CourseCard.html +++ b/lms/lms/widgets/CourseCard.html @@ -90,10 +90,12 @@ {% if ins_len == 1 %} - {{ instructors[0].full_name }} + {{ instructors[0].full_name }} + {% elif ins_len == 2 %} + {{ instructors[0].full_name.split(" ")[0] }} and {{ instructors[1].full_name.split(" ")[0] }} {% else %} - {% set suffix = "other" if ins_len - 1 == 1 else "others" %} - {{ instructors[0].full_name.split(" ")[0] }} and {{ ins_len - 1 }} {{ suffix }} + {% set suffix = "other" if ins_len - 1 == 1 else "others" %} + {{ instructors[0].full_name.split(" ")[0] }} and {{ ins_len - 1 }} {{ suffix }} {% endif %} diff --git a/lms/lms/widgets/Reviews.html b/lms/lms/widgets/Reviews.html index b91ce99f..29015da1 100644 --- a/lms/lms/widgets/Reviews.html +++ b/lms/lms/widgets/Reviews.html @@ -4,7 +4,7 @@
{{ _("Reviews") }} {% if is_eligible_to_review(course.name, membership) and reviews | length %} - + {{ _("Write a review") }} {% endif %} diff --git a/lms/public/css/style.css b/lms/public/css/style.css index 5a4c85ed..2fe71a33 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -1677,3 +1677,13 @@ li { margin-bottom: 1rem; } } + +.indicator-pill::before { + width: 0; + height: 0; + margin-right: 0; +} + +.review-link { + float: right +} diff --git a/lms/www/batch/learn.html b/lms/www/batch/learn.html index b8cfc684..78896567 100644 --- a/lms/www/batch/learn.html +++ b/lms/www/batch/learn.html @@ -90,12 +90,14 @@ {% endfor %} - {% if ins_len == 1 %} - {{ instructors[0].full_name }} - {% else %} - {% set suffix = _("other") if ins_len - 1 == 1 else _("others") %} - {{ instructors[0].full_name.split(" ")[0] }} and {{ ins_len - 1 }} {{ suffix }} - {% endif %} + {% if ins_len == 1 %} + {{ instructors[0].full_name }} + {% elif ins_len == 2 %} + {{ instructors[0].full_name.split(" ")[0] }} and {{ instructors[1].full_name.split(" ")[0] }} + {% else %} + {% set suffix = "other" if ins_len - 1 == 1 else "others" %} + {{ instructors[0].full_name.split(" ")[0] }} and {{ ins_len - 1 }} {{ suffix }} + {% endif %}
{{ frappe.utils.format_date(lesson.creation, "medium") }}
@@ -122,9 +124,9 @@ {% set course_link = "" + _('here') + "" %}
- {{ _("This lesson is not available for preview. + {{ _("There is no preview available for this lesson. Please join the course to access it. - Click {0} to join the course.").format(course_link) }} + Click {0} to enroll.").format(course_link) }}
{% endif %} diff --git a/lms/www/profiles/profile.html b/lms/www/profiles/profile.html index 962f4cea..3a4a6560 100644 --- a/lms/www/profiles/profile.html +++ b/lms/www/profiles/profile.html @@ -58,7 +58,7 @@ {% if frappe.session.user == member.email %} {% endif %}