From: Yoan Le Clanche Date: Thu, 15 Apr 2021 14:14:09 +0000 (+0200) Subject: Fix webclass with media not displaying media instead of bbb conf : https://trackers... X-Git-Tag: 2.8.1-pro~159 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=56f8804b1e063b2092bc19d6eccf671e9eaa2ad2;p=teleforma.git Fix webclass with media not displaying media instead of bbb conf : https://trackers.pilotsystems.net/probarreau/1105 --- 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 %}