|
@@ -26,18 +26,18 @@
|
26
|
26
|
</a>
|
27
|
27
|
</div>
|
28
|
28
|
<p></p>
|
29
|
|
-
|
|
29
|
+
|
30
|
30
|
## TODO - D.A - 2014-09-16
|
31
|
31
|
## Hide the delete button if the user is not a TIM Manager
|
32
|
32
|
% if user.profile.id>=2 or h.user_role(user, workspace)>2:
|
33
|
33
|
## if the user can see the toolbar, it means he is the workspace manager.
|
34
|
34
|
## So now, we need to know if he alsa has right to delete workspaces
|
35
|
35
|
<div class="btn-group btn-group-vertical">
|
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>
|
|
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>
|
41
|
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))}">
|
42
|
42
|
<i class="fa fa-trash fa-fw t-less-visible"></i>
|
43
|
43
|
${_('Delete')}
|