From bc8155f197cb06415983016defc988154cb6c4a5 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Fri, 18 Feb 2022 15:12:21 +0000 Subject: [PATCH] Add link to onsite tool to agenda. Fixes #3550. Commit ready for merge. - Legacy-Id: 19947 --- ietf/meeting/models.py | 3 +++ ietf/templates/meeting/session_buttons_include.html | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/ietf/meeting/models.py b/ietf/meeting/models.py index 021457cf2..3855384c8 100644 --- a/ietf/meeting/models.py +++ b/ietf/meeting/models.py @@ -487,6 +487,9 @@ class Room(models.Model): def video_stream_url(self): urlresources = [ur for ur in self.urlresource_set.all() if ur.name_id in ['meetecho']] return urlresources[0].url if urlresources else None + def onsite_tool_url(self): + urlresources = [ur for ur in self.urlresource_set.all() if ur.name_id in ['meetecho_onsite']] + return urlresources[0].url if urlresources else None def webex_url(self): urlresources = [ur for ur in self.urlresource_set.all() if ur.name_id in ['webex']] return urlresources[0].url if urlresources else None diff --git a/ietf/templates/meeting/session_buttons_include.html b/ietf/templates/meeting/session_buttons_include.html index e2f17b142..c2f51e153 100644 --- a/ietf/templates/meeting/session_buttons_include.html +++ b/ietf/templates/meeting/session_buttons_include.html @@ -38,6 +38,13 @@ title="Video stream"> {% endif %} + + {% if timeslot.location.onsite_tool_url %} + + + {% endif %} {% if timeslot.location.audio_stream_url %}