ソースを参照

Add button to go to jitsi-meet conf from workspace

Guénaël Muller 7 年 前
コミット
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
 </%def>
20
 </%def>
21
 
21
 
22
 <%def name="SIDEBAR_RIGHT_CONTENT()">
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
 </%def>
24
 </%def>
25
 
25
 
26
 <%def name="REQUIRED_DIALOGS()">
26
 <%def name="REQUIRED_DIALOGS()">

+ 13 - 0
tracim/tracim/templates/workspace/toolbar.mak ファイルの表示

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>
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
             </div>
20
             </div>
21
         % endif
21
         % endif
22
+            ${JITSI_MEET_BUTTON(current_user, workspace)}
22
     </div> <!-- # End of side bar right -->
23
     </div> <!-- # End of side bar right -->
23
     ## SIDEBAR RIGHT [END]
24
     ## SIDEBAR RIGHT [END]
24
 </%def>
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>