Просмотр исходного кода

fixes #81, will be restored with bug 85

Damien ACCORSI 8 лет назад
Родитель
Сommit
a053276123

+ 1 - 1
tracim/tracim/templates/file/toolbar.mak Просмотреть файл

30
         ## if the user can see the toolbar, it means he is the workspace manager.
30
         ## if the user can see the toolbar, it means he is the workspace manager.
31
         ## So now, we need to know if he alsa has right to delete workspaces
31
         ## So now, we need to know if he alsa has right to delete workspaces
32
         <div class="btn-group btn-group-vertical">
32
         <div class="btn-group btn-group-vertical">
33
-            <a title="${_('Archive file')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/files/{}/put_archive'.format(file.workspace.id, file.parent.id, file.id))}">${ICON.FA_FW('fa fa-archive t-less-visible')} ${_('Archive')}</a>
33
+## SHOW_ARCHIVE_BUTTON__BUG_#81            <a title="${_('Archive file')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/files/{}/put_archive'.format(file.workspace.id, file.parent.id, file.id))}">${ICON.FA_FW('fa fa-archive t-less-visible')} ${_('Archive')}</a>
34
             <a title="${_('Delete file')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/files/{}/put_delete'.format(file.workspace.id, file.parent.id, file.id))}">${ICON.FA_FW('fa fa-trash t-less-visible')} ${_('Delete')}</a>
34
             <a title="${_('Delete file')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/files/{}/put_delete'.format(file.workspace.id, file.parent.id, file.id))}">${ICON.FA_FW('fa fa-trash t-less-visible')} ${_('Delete')}</a>
35
         </div>
35
         </div>
36
     % endif
36
     % endif

+ 1 - 1
tracim/tracim/templates/folder/toolbar.mak Просмотреть файл

48
         ## if the user can see the toolbar, it means he is the workspace manager.
48
         ## if the user can see the toolbar, it means he is the workspace manager.
49
         ## So now, we need to know if he alsa has right to delete workspaces
49
         ## So now, we need to know if he alsa has right to delete workspaces
50
         <div class="btn-group btn-group-vertical">
50
         <div class="btn-group btn-group-vertical">
51
-            <a title="${_('Archive thread')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/put_archive'.format(folder.workspace.id, folder.id))}"><i class="fa fa-archive fa-fw tracim-less-visible"></i> ${_('Archive')}</a>
51
+## SHOW_ARCHIVE_BUTTON__BUG_#81            <a title="${_('Archive thread')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/put_archive'.format(folder.workspace.id, folder.id))}"><i class="fa fa-archive fa-fw tracim-less-visible"></i> ${_('Archive')}</a>
52
             <a title="${_('Delete thread')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/put_delete'.format(folder.workspace.id, folder.id))}"><i class="fa fa-trash-o fa-fw tracim-less-visible"></i> ${_('Delete')}</a>
52
             <a title="${_('Delete thread')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/put_delete'.format(folder.workspace.id, folder.id))}"><i class="fa fa-trash-o fa-fw tracim-less-visible"></i> ${_('Delete')}</a>
53
         </div>
53
         </div>
54
         <p></p>
54
         <p></p>

+ 5 - 4
tracim/tracim/templates/page/toolbar.mak Просмотреть файл

33
         ## if the user can see the toolbar, it means he is the workspace manager.
33
         ## if the user can see the toolbar, it means he is the workspace manager.
34
         ## So now, we need to know if he alsa has right to delete workspaces
34
         ## So now, we need to know if he alsa has right to delete workspaces
35
         <div class="btn-group btn-group-vertical">
35
         <div class="btn-group btn-group-vertical">
36
-            <a title="${_('Archive page')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/pages/{}/put_archive'.format(page.workspace.id, page.parent.id, page.id))}">
37
-                <i class="fa fa-archive fa-fw t-less-visible"></i>
38
-                ${_('Archive')}
39
-            </a>
36
+## SHOW_ARCHIVE_BUTTON__BUG_#81
37
+#             <a title="${_('Archive page')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/pages/{}/put_archive'.format(page.workspace.id, page.parent.id, page.id))}">
38
+#                 <i class="fa fa-archive fa-fw t-less-visible"></i>
39
+#                 ${_('Archive')}
40
+#             </a>
40
             <a title="${_('Delete page')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/pages/{}/put_delete'.format(page.workspace.id, page.parent.id, page.id))}">
41
             <a title="${_('Delete page')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/pages/{}/put_delete'.format(page.workspace.id, page.parent.id, page.id))}">
41
                 <i class="fa fa-trash fa-fw t-less-visible"></i>
42
                 <i class="fa fa-trash fa-fw t-less-visible"></i>
42
                 ${_('Delete')}
43
                 ${_('Delete')}

+ 5 - 4
tracim/tracim/templates/thread/toolbar.mak Просмотреть файл

25
         ## if the user can see the toolbar, it means he is the workspace manager.
25
         ## if the user can see the toolbar, it means he is the workspace manager.
26
         ## So now, we need to know if he alsa has right to delete workspaces
26
         ## So now, we need to know if he alsa has right to delete workspaces
27
         <div class="btn-group btn-group-vertical">
27
         <div class="btn-group btn-group-vertical">
28
-            <a title="${_('Archive thread')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/threads/{}/put_archive'.format(thread.workspace.id, thread.parent.id, thread.id))}">
29
-                ${ICON.FA_FW('t-less-visible fa fa-archive')}
30
-                ${_('Archive')}
31
-            </a>
28
+## SHOW_ARCHIVE_BUTTON__BUG_#81
29
+##             <a title="${_('Archive thread')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/threads/{}/put_archive'.format(thread.workspace.id, thread.parent.id, thread.id))}">
30
+##                 ${ICON.FA_FW('t-less-visible fa fa-archive')}
31
+##                 ${_('Archive')}
32
+##             </a>
32
             <a title="${_('Delete thread')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/threads/{}/put_delete'.format(thread.workspace.id, thread.parent.id, thread.id))}">
33
             <a title="${_('Delete thread')}" class="btn btn-default ${delete_or_archive_disabled}" href="${tg.url('/workspaces/{}/folders/{}/threads/{}/put_delete'.format(thread.workspace.id, thread.parent.id, thread.id))}">
33
                 ${ICON.FA_FW('t-less-visible fa fa-trash')}
34
                 ${ICON.FA_FW('t-less-visible fa fa-trash')}
34
                 ${_('Delete')}
35
                 ${_('Delete')}