]> git.parisson.com Git - teleforma.git/commitdiff
Fix webclass with media not displaying media instead of bbb conf : https://trackers...
authorYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 15 Apr 2021 14:14:09 +0000 (16:14 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Thu, 15 Apr 2021 14:14:09 +0000 (16:14 +0200)
teleforma/templates/teleforma/seminar_detail.html

index 859abf090fd62e0e6c1471f0bde85bdb1f0c51f7..b9da46f31fda2c56f30cbd08787930d49480d65f 100644 (file)
   </div>
   {% endwith %}
 
-  {% if seminar.conference.webclass %}
-  {% with seminar.conference as webclass %}
-  <div class="course_content">
-    <div class="course_subtitle">
-      <h3><img src="{{ STATIC_URL }}/telemeta/images/item_title.png" width="10px" alt="" /> {% trans "Step" %} 2 :
-        {% trans "view this conference" %}</h3>
+  {% if seminar.conference.webclass and not seminar.medias.all.count %}
+    {% with seminar.conference as webclass %}
+    <div class="course_content">
+      <div class="course_subtitle">
+        <h3><img src="{{ STATIC_URL }}/telemeta/images/item_title.png" width="10px" alt="" /> {% trans "Step" %} 2 :
+          {% trans "view this conference" %}</h3>
+      </div>
+      {% include "teleforma/inc/webclass.html" %}
     </div>
-    {% include "teleforma/inc/webclass.html" %}
-  </div>
-  {% endwith %}
+    {% endwith %}
   {% else %}
-  {% with seminar.medias as medias %}
-  <div class="course_content">
-    <div class="course_subtitle">
-      <h3><img src="{{ STATIC_URL }}/telemeta/images/item_title.png" width="10px" alt="" /> {% trans "Step" %} 2 :
-        {% if medias.all.count > 1 %}{% trans "view these conferences" %}{% else %}{% trans "view this conference" %}{% endif %}
-      </h3>
+    {% with seminar.medias as medias %}
+    <div class="course_content">
+      <div class="course_subtitle">
+        <h3><img src="{{ STATIC_URL }}/telemeta/images/item_title.png" width="10px" alt="" /> {% trans "Step" %} 2 :
+          {% if medias.all.count > 1 %}{% trans "view these conferences" %}{% else %}{% trans "view this conference" %}{% endif %}
+        </h3>
+      </div>
+      {% include "teleforma/inc/media_package_list.html" %}
     </div>
-    {% include "teleforma/inc/media_package_list.html" %}
-  </div>
-  {% endwith %}
+    {% endwith %}
   {% endif %}