From 153bb925d88cae89c433572d21494df04d56b6e4 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Wed, 21 Apr 2021 15:15:55 +0530 Subject: [PATCH] fix: show mentors section even when there are no mentors Previously, the mentors heading was not shown when there were no mentors, but the link to apply to become mentor was shown and that appears in the Instructors section. Fixed it by showing a message to indicate that there are no mentors for this course. --- community/www/courses/course.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/community/www/courses/course.html b/community/www/courses/course.html index a95bb8ec..4a2a4c3e 100644 --- a/community/www/courses/course.html +++ b/community/www/courses/course.html @@ -210,10 +210,13 @@ - {% if mentors %}

Mentors

+ {% if not mentors %} + There are no active mentors for this course. + {% endif %} + {% for mentor in mentors %}
@@ -232,7 +235,6 @@ {% endfor %}
- {% endif %} {% if not is_mentor %}
Interested to mentor this course?