Added WebEx room resource name, query method and template logic to show WebEx room resources.
- Legacy-Id: 17437
This commit is contained in:
parent
04d93a8029
commit
170271d97d
|
@ -1,4 +1,4 @@
|
|||
# Copyright The IETF Trust 2007-2019, All Rights Reserved
|
||||
# Copyright The IETF Trust 2007-2020, All Rights Reserved
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
|
||||
|
@ -399,6 +399,9 @@ class Room(models.Model):
|
|||
def video_stream_url(self):
|
||||
urlresource = self.urlresource_set.filter(name_id__in=['meetecho', ]).first()
|
||||
return urlresource.url if urlresource else None
|
||||
def webex_url(self):
|
||||
urlresource = self.urlresource_set.filter(name_id__in=['webex', ]).first()
|
||||
return urlresource.url if urlresource else None
|
||||
#
|
||||
class Meta:
|
||||
ordering = ["-id"]
|
||||
|
|
|
@ -11461,6 +11461,16 @@
|
|||
"model": "name.roomresourcename",
|
||||
"pk": "u-shape"
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"desc": "WebEx support",
|
||||
"name": "WebEx session",
|
||||
"order": 0,
|
||||
"used": true
|
||||
},
|
||||
"model": "name.roomresourcename",
|
||||
"pk": "webex"
|
||||
},
|
||||
{
|
||||
"fields": {
|
||||
"desc": "",
|
||||
|
|
|
@ -24,12 +24,7 @@
|
|||
href="xmpp:{{item.session.jabber_room_name}}@jabber.ietf.org?join"
|
||||
title="Jabber room for {{item.session.jabber_room_name}}"><span class="fa fa-lightbulb-o"></span>
|
||||
</a>
|
||||
{% if "https://ietf.webex.com" in item.session.agenda_note|first_url %}
|
||||
<a class="btn btn-default btn-xs"
|
||||
href="{{ item.session.agenda_note|first_url }}"
|
||||
title="Webex session"><span class="fa fa-phone"></span>
|
||||
</a>
|
||||
{% else %}
|
||||
|
||||
<!-- Video stream (meetecho) -->
|
||||
{% if item.timeslot.location.video_stream_url %}
|
||||
<a class="btn btn-default btn-xs"
|
||||
|
@ -44,7 +39,21 @@
|
|||
title="Audio stream"><span class="glyphicon glyphicon-headphones"></span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<!-- WebEx -->
|
||||
{% if "https://ietf.webex.com" in item.session.agenda_note|first_url %}
|
||||
<a class="btn btn-default btn-xs"
|
||||
href="{{ item.session.agenda_note|first_url }}"
|
||||
title="Webex session"><span class="fa fa-phone"></span>
|
||||
</a>
|
||||
{% else %}
|
||||
{% if item.timeslot.location.webex_url %}
|
||||
<a class="btn btn-default btn-xs"
|
||||
href="{{item.timeslot.location.webex_url|format:item.session }}"
|
||||
title="Webex session"><span class="fa fa-phone"></span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
|
||||
<!-- Jabber logs -->
|
||||
|
|
Loading…
Reference in a new issue