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 %}