fix: Move Meetecho buttons to separate button group (#4295)

Fixes #4288
This commit is contained in:
Lars Eggert 2022-08-02 17:20:26 +02:00 committed by GitHub
parent cdb4769a73
commit 73931c2ed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,33 @@
{# Note: if called with show_agenda=True, calling template must load agenda_materials.js, needed by session_agenda_include.html #}
{% include "meeting/session_agenda_include.html" with slug=slug session=session timeslot=timeslot only %}
{% endif %}
<div class="d-flex">
{% if timeslot.location.video_stream_url or timeslot.location.onsite_tool_url %}
<div id="session-meetecho-buttons-{{ session.pk }}"
role="group"
class="btn-group btn-group-sm d-none d-lg-flex me-1">
{# Video stream (meetecho) #}
{% if timeslot.location.video_stream_url %}
<a class="btn btn-outline-primary"
role="button"
href="{{ timeslot.location.video_stream_url|format:session }}"
aria-label="Full Client with Video"
title="Full Client with Video">
<i class="bi bi-camera-video"></i>
</a>
{% endif %}
{# Onsite tool (meetecho_onsite) #}
{% if timeslot.location.onsite_tool_url %}
<a class="btn btn-outline-primary"
role="button"
href="{{ timeslot.location.onsite_tool_url|format:session }}"
aria-label="Onsite tool"
title="Onsite tool">
<i class="bi bi-phone"></i>
</a>
{% endif %}
</div>
{% endif %}
<div id="session-buttons-{{ session.pk }}"
role="group"
class="btn-group btn-group-sm d-none d-lg-flex">
@ -63,26 +90,6 @@
title="Chat room for {{ session.chat_room_name }}">
<i class="bi bi-chat"></i>
</a>
{# Video stream (meetecho) #}
{% if timeslot.location.video_stream_url %}
<a class="btn btn-outline-primary"
role="button"
href="{{ timeslot.location.video_stream_url|format:session }}"
aria-label="Full Client with Video"
title="Full Client with Video">
<i class="bi bi-camera-video"></i>
</a>
{% endif %}
{# Onsite tool (meetecho_onsite) #}
{% if timeslot.location.onsite_tool_url %}
<a class="btn btn-outline-primary"
role="button"
href="{{ timeslot.location.onsite_tool_url|format:session }}"
aria-label="Onsite tool"
title="Onsite tool">
<i class="bi bi-phone"></i>
</a>
{% endif %}
{# Audio stream #}
{% if timeslot.location.audio_stream_url %}
<a class="btn btn-outline-primary"
@ -364,6 +371,7 @@
{% endwith %}
</ul>
</div>
</div>
{% endwith %}
{% endwith %}
{% endwith %}