Adding jitsi to meetup choices

stable
Alejandro Alonso 2015-05-04 10:25:27 +02:00
parent a3f453b897
commit c7b2b423ce
2 changed files with 6 additions and 2 deletions

View File

@ -249,15 +249,19 @@ ProjectMenuDirective = ($log, $compile, $auth, $rootscope, $tgAuth, $location, $
container.replaceWith(dom)
videoConferenceUrl = (project) ->
urlSeparator = "-"
if project.videoconferences == "appear-in"
baseUrl = "https://appear.in/"
else if project.videoconferences == "talky"
baseUrl = "https://talky.io/"
else if project.videoconferences == "jitsi"
urlSeparator = ""
baseUrl = "https://meet.jit.si/"
else
return ""
if project.videoconferences_salt
url = "#{project.slug}-#{project.videoconferences_salt}"
url = "#{project.slug}#{urlSeparator}#{project.videoconferences_salt}"
else
url = "#{project.slug}"

View File

@ -85,7 +85,7 @@ div.wrapper(tg-project-modules, ng-controller="ProjectProfileController as ctrl"
div.videoconference-attributes.hidden
select(ng-model="project.videoconferences",
ng-options="e.id as e.name for e in [{'id':'appear-in', 'name':'AppearIn'},{'id':'talky', 'name': 'Talky'}]")
ng-options="e.id as e.name for e in [{'id':'appear-in', 'name':'AppearIn'},{'id':'jitsi', 'name': 'Jitsi'},{'id':'talky', 'name': 'Talky'}]")
option(value="", translate="ADMIN.MODULES.SELECT_VIDEOCONFERENCE")
input(type="text", ng-model="project.videoconferences_salt",
placeholder="{{'ADMIN.MODULES.SALT_CHAT_ROOM' | translate}}")