Browse Source

Add button to go to jitsi-meet conf from workspace

Guénaël Muller 6 years ago
parent
commit
42e91a0104

+ 1 - 1
tracim/tracim/templates/workspace/getone.mak View File

@@ -20,7 +20,7 @@
20 20
 </%def>
21 21
 
22 22
 <%def name="SIDEBAR_RIGHT_CONTENT()">
23
-##    {TOOLBAR.SECURED_FOLDER(fake_api.current_user, result.folder.workspace, result.folder)}
23
+ ${TOOLBAR.WORKSPACE_USER(fake_api.current_user, result.workspace)}
24 24
 </%def>
25 25
 
26 26
 <%def name="REQUIRED_DIALOGS()">

+ 13 - 0
tracim/tracim/templates/workspace/toolbar.mak View File

@@ -19,6 +19,19 @@
19 19
                 <a title="${_('Delete current workspace')}" class="btn btn-default" href="${tg.url('/admin/workspaces/{}/delete'.format(result.workspace.id))}">${ICON.FA('fa-trash fa-fw t-less-visible')} ${_('Delete')}</a>
20 20
             </div>
21 21
         % endif
22
+            ${JITSI_MEET_BUTTON(current_user, workspace)}
22 23
     </div> <!-- # End of side bar right -->
23 24
     ## SIDEBAR RIGHT [END]
24 25
 </%def>
26
+
27
+<%def name="WORKSPACE_USER(current_user, workspace)">
28
+    <div>
29
+        ${JITSI_MEET_BUTTON(current_user, workspace)}
30
+    </div> <!-- # End of side bar right -->
31
+</%def>
32
+
33
+<%def name="JITSI_MEET_BUTTON(current_user, workspace)">
34
+    <div class="btn-group btn-group-vertical">
35
+        <a title="${_('Video conference')}" class="btn btn-default" href="${tg.url('/workspaces/{}/videoconf'.format(result.workspace.id))}">${ICON.FA('fa-video-camera fa-fw t-less-visible')} ${_('Video Conference')}</a>
36
+    </div>
37
+</%def>