Skip to content

Commit bc8155f

Browse files
committed
Add link to onsite tool to agenda. Fixes ietf-tools#3550. Commit ready for merge.
- Legacy-Id: 19947
1 parent 1070ea6 commit bc8155f

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

ietf/meeting/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ def audio_stream_url(self):
487487
def video_stream_url(self):
488488
urlresources = [ur for ur in self.urlresource_set.all() if ur.name_id in ['meetecho']]
489489
return urlresources[0].url if urlresources else None
490+
def onsite_tool_url(self):
491+
urlresources = [ur for ur in self.urlresource_set.all() if ur.name_id in ['meetecho_onsite']]
492+
return urlresources[0].url if urlresources else None
490493
def webex_url(self):
491494
urlresources = [ur for ur in self.urlresource_set.all() if ur.name_id in ['webex']]
492495
return urlresources[0].url if urlresources else None

ietf/templates/meeting/session_buttons_include.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
title="Video stream"><span class="fa fa-fw fa-video-camera"></span>
3939
</a>
4040
{% endif %}
41+
<!-- Onsite tool (meetecho_onsite) -->
42+
{% if timeslot.location.onsite_tool_url %}
43+
<a class=""
44+
href="{{timeslot.location.onsite_tool_url|format:session }}"
45+
title="Onsite tool"><span class="fa fa-fw fa-street-view"></span>
46+
</a>
47+
{% endif %}
4148
<!-- Audio stream -->
4249
{% if timeslot.location.audio_stream_url %}
4350
<a class=""

0 commit comments

Comments
 (0)