From cc7832614b954c9c9f6450719f45ffc7dbc401d9 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 28 Sep 2023 10:14:10 +0530 Subject: [PATCH] fix: hide course header for students if no courses in batch --- lms/www/batches/batch_details.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/www/batches/batch_details.html b/lms/www/batches/batch_details.html index 8d1d9ee9..d8eeeb1a 100644 --- a/lms/www/batches/batch_details.html +++ b/lms/www/batches/batch_details.html @@ -171,6 +171,7 @@ {% macro CourseList(courses) %} +{% if courses | length or is_moderator %}
@@ -214,6 +215,7 @@
{% endif %}
+{% endif %} {% endmacro %} {%- block script %}