fix: same speaker in multiple slots

This commit is contained in:
mco-system 2023-04-16 22:59:45 +11:00
parent 9d52c03cc8
commit 95d1cdf741
2 changed files with 5 additions and 4 deletions

View File

@ -2,6 +2,7 @@
{% block content %}
<div class="content">
{% for slot in slots %}
{% set loop_index = loop.index %}
{% if filter %}
{% if slot.submission_type.en | lower in filter %}
{% include "slot.html" %}

View File

@ -1,7 +1,7 @@
<div class="slot">
<div class="slot_header">
<div class="slot_title {{ slot.slot.start | date2dayclass}}"
onclick="switch_visibility(document.getElementById('{{slot.code}}'))">
onclick="switch_visibility(document.getElementById('{{slot.code}}_{{loop_index}}'))">
<i class="black {{slot.submission_type.fr | toicon }}"></i>
<span class="title">{{slot.title}}</span>
</div>
@ -17,12 +17,12 @@
<div class="speakers">
{% for speaker in slot.speakers %}
<div class="speaker">
<div class="name" onclick="switch_visibility(document.getElementById('{{speaker.code}}'))">
<div class="name" onclick="switch_visibility(document.getElementById('{{speaker.code}}_{{loop_index}}'))">
<i class="fa-solid fa-user"></i>
<span>{{speaker.name | title}}</span>
</div>
{% if speaker.avatar or speaker.biography %}
<div id="{{speaker.code}}" class="speaker_details">
<div id="{{speaker.code}}_{{loop_index}}" class="speaker_details">
{% if speaker.avatar %}
<div class="speaker_avatar">
<img class="speaker_img"
@ -43,7 +43,7 @@
</div>
{% endfor %}
</div>
<div id="{{slot.code}}" class="slot_details">
<div id="{{slot.code}}_{{loop_index}}" class="slot_details">
<div class="abstract">
{% if slot.image %}
<img class="slot_img"