diff --git a/apps/course/templates/course/content/gallery.html b/apps/course/templates/course/content/gallery.html index e02a27c0..771df8b6 100644 --- a/apps/course/templates/course/content/gallery.html +++ b/apps/course/templates/course/content/gallery.html @@ -1 +1,19 @@ -{{ content }} \ No newline at end of file +{% if results %} +
Галерея итогов обучения
+
+ {% for image in course.gallery.gallery_images.all %} +
+ +
+ {% endfor %} +
+{% else %} +
{{ content.title }}
+
+ {% for image in content.gallery_images.all %} +
+ +
+ {% endfor %} +
+{% endif %} \ No newline at end of file diff --git a/apps/course/templates/course/course.html b/apps/course/templates/course/course.html index 5d5c5c4a..b9c9aa5c 100644 --- a/apps/course/templates/course/course.html +++ b/apps/course/templates/course/course.html @@ -263,45 +263,7 @@ {% endif %}
-
Галерея итогов обучения
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
+ {% include "course/content/gallery.html" with results=True %}