mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2024-12-22 14:39:11 +00:00
room info: add small helper text to hint people into giving feedback
This commit is contained in:
parent
16350548f5
commit
97784373c0
3 changed files with 20 additions and 9 deletions
|
@ -14,6 +14,7 @@ body {
|
|||
display: flex;
|
||||
flex-flow: column;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#broadcast_tools_room_info_header, #broadcast_tools_room_info_qr {
|
||||
|
@ -38,7 +39,11 @@ body {
|
|||
|
||||
#broadcast_tools_room_info_qr img {
|
||||
background-color: white;
|
||||
height: 100%;
|
||||
height: calc(100% - 2em);
|
||||
}
|
||||
|
||||
#broadcast_tools_room_info_qr p {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
#l3box {
|
||||
|
|
|
@ -43,7 +43,7 @@ function update_room_info() {
|
|||
if (current_talk) {
|
||||
$('#broadcast_tools_room_info_title').text(current_talk['title']);
|
||||
$('#broadcast_tools_room_info_speaker').text(current_talk['persons'].join(', '));
|
||||
$('#broadcast_tools_room_info_qr').html('<img src="' + current_talk['feedback_qr_url'] + '" alt="Feedback QR Code">');
|
||||
$('#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 {
|
||||
$('#broadcast_tools_room_info_title').text(event_info['no_talk']);
|
||||
$('#broadcast_tools_room_info_speaker').text('');
|
||||
|
|
|
@ -133,13 +133,19 @@ class BroadcastToolsScheduleView(EventPermissionRequired, ScheduleMixin, View):
|
|||
else None,
|
||||
"room": room["name"].localize(schedule.event.locale),
|
||||
"infoline": infoline.format(**placeholders(schedule, talk)),
|
||||
"feedback_qr_url": reverse(
|
||||
"plugins:pretalx_broadcast_tools:feedback_qr_id",
|
||||
kwargs={
|
||||
"event": schedule.event,
|
||||
"talk": talk.submission.id,
|
||||
},
|
||||
),
|
||||
"urls": {
|
||||
"feedback": "{}{}".format(
|
||||
schedule.event.custom_domain or settings.SITE_URL,
|
||||
talk.submission.urls.feedback,
|
||||
),
|
||||
"feedback_qr": reverse(
|
||||
"plugins:pretalx_broadcast_tools:feedback_qr_id",
|
||||
kwargs={
|
||||
"event": schedule.event,
|
||||
"talk": talk.submission.id,
|
||||
},
|
||||
),
|
||||
},
|
||||
}
|
||||
for day in schedule.data
|
||||
for room in day["rooms"]
|
||||
|
|
Loading…
Reference in a new issue