浏览代码

Add button to go to jitsi-meet conf from workspace

Guénaël Muller 6 年前
父节点
当前提交
42e91a0104
共有 2 个文件被更改,包括 14 次插入1 次删除
  1. 1 1
      tracim/tracim/templates/workspace/getone.mak
  2. 13 0
      tracim/tracim/templates/workspace/toolbar.mak

+ 1 - 1
tracim/tracim/templates/workspace/getone.mak 查看文件

@@ -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 查看文件

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