1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-22 02:11:03 +00:00

show room name and event name if there are no talks scheduled

This commit is contained in:
Franzi 2023-02-28 15:37:27 +01:00
parent c1604efb08
commit c9b01acb6e
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 3 additions and 3 deletions

View file

@ -45,8 +45,8 @@ function update_room_info() {
$('#broadcast_tools_room_info_speaker').text(current_talk['persons'].join(', ')); $('#broadcast_tools_room_info_speaker').text(current_talk['persons'].join(', '));
$('#broadcast_tools_room_info_qr').html('<img src="' + current_talk['urls']['feedback_qr'] + '" alt="Feedback QR Code"><p>Leave Feedback by scanning the code or visiting ' + current_talk['urls']['feedback'] + '</p>'); $('#broadcast_tools_room_info_qr').html('<img src="' + current_talk['urls']['feedback_qr'] + '" alt="Feedback QR Code"><p>Leave Feedback by scanning the code or visiting ' + current_talk['urls']['feedback'] + '</p>');
} else { } else {
$('#broadcast_tools_room_info_title').text(event_info['no_talk']); $('#broadcast_tools_room_info_title').text(event_info['name']);
$('#broadcast_tools_room_info_speaker').text(''); $('#broadcast_tools_room_info_speaker').text(room_name);
$('#broadcast_tools_room_info_qr').text(''); $('#broadcast_tools_room_info_qr').text('');
} }

View file

@ -5,7 +5,7 @@
<head> <head>
<meta http-equiv="content-type" content="text/html" charset="UTF-8"> <meta http-equiv="content-type" content="text/html" charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>{{ request.event.name }} lower thirds</title> <title>{{ request.event.name }} room info</title>
{% compress js %} {% compress js %}
<script src="{% static "vendored/jquery-3.1.1.js" %}"></script> <script src="{% static "vendored/jquery-3.1.1.js" %}"></script>
{% endcompress %} {% endcompress %}