diff --git a/lms/lms/widgets/CourseCard.html b/lms/lms/widgets/CourseCard.html index e601811a..6c3b4599 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 - 2 == 1 else "others" %} + {{ instructors[0].full_name.split(" ")[0] }}, {{ instructors[1].full_name.split(" ")[0] }} and {{ ins_len - 2 }} {{ 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 @@