Merged in [19947] from rjsparks@nostrum.com:

Add link to onsite tool to agenda. Fixes #3550.
 - Legacy-Id: 19956
Note: SVN reference [19947] has been migrated to Git commit bc8155f197
This commit is contained in:
Robert Sparks 2022-02-22 22:25:20 +00:00
commit 9be597db61
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -38,6 +38,13 @@
title="Video stream"><span class="fa fa-fw fa-video-camera"></span>
</a>
{% endif %}
<!-- Onsite tool (meetecho_onsite) -->
{% if timeslot.location.onsite_tool_url %}
<a class=""
href="{{timeslot.location.onsite_tool_url|format:session }}"
title="Onsite tool"><span class="fa fa-fw fa-street-view"></span>
</a>
{% endif %}
<!-- Audio stream -->
{% if timeslot.location.audio_stream_url %}
<a class=""