From 56f8804b1e063b2092bc19d6eccf671e9eaa2ad2 Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Thu, 15 Apr 2021 16:14:09 +0200 Subject: [PATCH] Fix webclass with media not displaying media instead of bbb conf : https://trackers.pilotsystems.net/probarreau/1105 --- .../templates/teleforma/seminar_detail.html | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index 859abf09..b9da46f3 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -170,27 +170,27 @@ {% endwith %} - {% if seminar.conference.webclass %} - {% with seminar.conference as webclass %} -
-
-

{% trans "Step" %} 2 : - {% trans "view this conference" %}

+ {% if seminar.conference.webclass and not seminar.medias.all.count %} + {% with seminar.conference as webclass %} +
+
+

{% trans "Step" %} 2 : + {% trans "view this conference" %}

+
+ {% include "teleforma/inc/webclass.html" %}
- {% include "teleforma/inc/webclass.html" %} -
- {% endwith %} + {% endwith %} {% else %} - {% with seminar.medias as medias %} -
-
-

{% trans "Step" %} 2 : - {% if medias.all.count > 1 %}{% trans "view these conferences" %}{% else %}{% trans "view this conference" %}{% endif %} -

+ {% with seminar.medias as medias %} +
+
+

{% trans "Step" %} 2 : + {% if medias.all.count > 1 %}{% trans "view these conferences" %}{% else %}{% trans "view this conference" %}{% endif %} +

+
+ {% include "teleforma/inc/media_package_list.html" %}
- {% include "teleforma/inc/media_package_list.html" %} -
- {% endwith %} + {% endwith %} {% endif %} -- 2.39.5