|
|
@@ -105,6 +105,13 @@ ${ fb_components.menubar() }
|
|
|
<i class="fa fa-fw fa-hdd-o"></i> ${_('Set replication')}
|
|
|
</a>
|
|
|
</li>
|
|
|
+ % if not is_trash_enabled:
|
|
|
+ <li>
|
|
|
+ <a href="javascript: void(0)" class="delete-link" title="${_('Delete forever')}" data-bind="visible: !inTrash() && selectedFiles().length > 0 && isCurrentDirSelected().length == 0, click: deleteSelected">
|
|
|
+ <i class="fa fa-fw fa-bolt"></i> ${_('Delete forever')}
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ % endif
|
|
|
% if ENABLE_EXTRACT_UPLOADED_ARCHIVE.get():
|
|
|
<li><a href="javascript: void(0)" title="${_('Compress selection into a single archive')}" data-bind="click: function() { setCompressArchiveDefault(); confirmCompressFiles();}, visible: showCompressButton">
|
|
|
<i class="fa fa-fw fa-file-archive-o"></i> ${_('Compress')}</a>
|
|
|
@@ -118,9 +125,7 @@ ${ fb_components.menubar() }
|
|
|
<button class="btn fileToolbarBtn" title="${_('Copy Path')}" data-bind="enable: selectedFiles().length == 1 && isCurrentDirSelected().length == 0, click: copyPath"><i class="fa fa-fw fa-files-o"></i> ${_('Copy Path')}</button>
|
|
|
<button class="btn fileToolbarBtn" title="${_('Restore from trash')}" data-bind="visible: inRestorableTrash(), click: restoreTrashSelected, enable: selectedFiles().length > 0 && isCurrentDirSelected().length == 0"><i class="fa fa-cloud-upload"></i> ${_('Restore')}</button>
|
|
|
<!-- ko ifnot: inTrash -->
|
|
|
- % if not is_trash_enabled:
|
|
|
- <button class="btn fileToolbarBtn delete-link" title="${_('Delete forever')}" data-bind="enable: selectedFiles().length > 0 && isCurrentDirSelected().length == 0, click: deleteSelected"><i class="fa fa-bolt"></i> ${_('Delete forever')}</button>
|
|
|
- % else:
|
|
|
+ % if is_trash_enabled:
|
|
|
<div id="delete-dropdown" class="btn-group" style="vertical-align: middle">
|
|
|
<button id="trash-btn" class="btn toolbarBtn" data-bind="enable: selectedFiles().length > 0 && isCurrentDirSelected().length == 0, click: trashSelected"><i class="fa fa-times"></i> ${_('Move to trash')}</button>
|
|
|
<button id="trash-btn-caret" class="btn toolbarBtn dropdown-toggle" data-toggle="dropdown" data-bind="enable: selectedFiles().length > 0 && isCurrentDirSelected().length == 0">
|