|
@@ -466,19 +466,19 @@ from django.utils.translation import ugettext as _
|
|
|
<!-- actions context menu -->
|
|
<!-- actions context menu -->
|
|
|
<ul class="context-menu dropdown-menu">
|
|
<ul class="context-menu dropdown-menu">
|
|
|
<!-- ko ifnot: $root.inTrash -->
|
|
<!-- ko ifnot: $root.inTrash -->
|
|
|
- <li><a href="#" title="${_('Rename')}" data-bind="visible: !$root.inTrash() && $root.selectedFiles().length == 1, click: $root.renameFile,
|
|
|
|
|
|
|
+ <li data-bind="visible: !isS3() || (isS3() && !isS3Root())"><a href="#" title="${_('Rename')}" data-bind="visible: !$root.inTrash() && $root.selectedFiles().length == 1, click: $root.renameFile,
|
|
|
enable: $root.selectedFiles().length == 1 && isCurrentDirSelected().length == 0"><i class="fa fa-fw fa-font"></i>
|
|
enable: $root.selectedFiles().length == 1 && isCurrentDirSelected().length == 0"><i class="fa fa-fw fa-font"></i>
|
|
|
${_('Rename')}</a></li>
|
|
${_('Rename')}</a></li>
|
|
|
- <li><a href="#"title="${_('Move')}" data-bind="click: $root.move, enable: $root.selectedFiles().length > 0 &&
|
|
|
|
|
|
|
+ <li data-bind="visible: !isS3() || (isS3() && !isS3Root())"><a href="#"title="${_('Move')}" data-bind="click: $root.move, enable: $root.selectedFiles().length > 0 &&
|
|
|
isCurrentDirSelected().length == 0"><i class="fa fa-fw fa-random"></i> ${_('Move')}</a></li>
|
|
isCurrentDirSelected().length == 0"><i class="fa fa-fw fa-random"></i> ${_('Move')}</a></li>
|
|
|
- <li><a href="#" title="${_('Copy')}" data-bind="click: $root.copy, enable: $root.selectedFiles().length > 0 &&
|
|
|
|
|
|
|
+ <li data-bind="visible: !isS3() || (isS3() && !isS3Root())"><a href="#" title="${_('Copy')}" data-bind="click: $root.copy, enable: $root.selectedFiles().length > 0 &&
|
|
|
isCurrentDirSelected().length == 0"><i class="fa fa-fw fa-files-o"></i> ${_('Copy')}</a></li>
|
|
isCurrentDirSelected().length == 0"><i class="fa fa-fw fa-files-o"></i> ${_('Copy')}</a></li>
|
|
|
% if show_download_button:
|
|
% if show_download_button:
|
|
|
<li><a href="#" title="${_('Download')}" data-bind="visible: !$root.inTrash() && $root.selectedFiles().length == 1 && selectedFile().type == 'file', click: $root.downloadFile"><i class="fa fa-fw fa-arrow-circle-o-down"></i> ${_('Download')}</a></li>
|
|
<li><a href="#" title="${_('Download')}" data-bind="visible: !$root.inTrash() && $root.selectedFiles().length == 1 && selectedFile().type == 'file', click: $root.downloadFile"><i class="fa fa-fw fa-arrow-circle-o-down"></i> ${_('Download')}</a></li>
|
|
|
% endif
|
|
% endif
|
|
|
<li class="divider" data-bind="visible: !isS3()"></li>
|
|
<li class="divider" data-bind="visible: !isS3()"></li>
|
|
|
% if is_fs_superuser:
|
|
% if is_fs_superuser:
|
|
|
- <li data-bind="css: {'disabled': $root.isCurrentDirSentryManaged || selectedSentryFiles().length > 0 }">
|
|
|
|
|
|
|
+ <li data-bind="css: {'disabled': $root.isCurrentDirSentryManaged || selectedSentryFiles().length > 0 }, visible: !isS3()">
|
|
|
<a href="#" data-bind="visible: !$root.inTrash(), click: $root.changeOwner, enable: $root.selectedFiles().length > 0">
|
|
<a href="#" data-bind="visible: !$root.inTrash(), click: $root.changeOwner, enable: $root.selectedFiles().length > 0">
|
|
|
<i class="fa fa-fw fa-user"></i> ${_('Change owner / group')}
|
|
<i class="fa fa-fw fa-user"></i> ${_('Change owner / group')}
|
|
|
</a>
|
|
</a>
|
|
@@ -489,7 +489,7 @@ from django.utils.translation import ugettext as _
|
|
|
<i class="fa fa-fw fa-list-alt"></i> ${_('Change permissions')}
|
|
<i class="fa fa-fw fa-list-alt"></i> ${_('Change permissions')}
|
|
|
</a>
|
|
</a>
|
|
|
</li>
|
|
</li>
|
|
|
- <li class="divider"></li>
|
|
|
|
|
|
|
+ <li class="divider" data-bind="visible: !isS3() || (isS3() && !isS3Root())"></li>
|
|
|
% if is_trash_enabled:
|
|
% if is_trash_enabled:
|
|
|
<li><a href="#" data-bind="enable: $root.selectedFiles().length > 0 && isCurrentDirSelected().length == 0, click: $root.trashSelected"><i class="fa fa-fw fa-times"></i> ${_('Move to trash')}</a></li>
|
|
<li><a href="#" data-bind="enable: $root.selectedFiles().length > 0 && isCurrentDirSelected().length == 0, click: $root.trashSelected"><i class="fa fa-fw fa-times"></i> ${_('Move to trash')}</a></li>
|
|
|
%endif
|
|
%endif
|
|
@@ -520,7 +520,7 @@ from django.utils.translation import ugettext as _
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script id="fileTemplate" type="text/html">
|
|
<script id="fileTemplate" type="text/html">
|
|
|
- <tr style="cursor: pointer" data-bind="drop: { enabled: name !== '.' && type !== 'file', value: $data }, event: { mouseover: toggleHover, mouseout: toggleHover, contextmenu: showContextMenu }, click: $root.viewFile, css: { 'row-selected': selected(), 'row-highlighted': highlighted() }">
|
|
|
|
|
|
|
+ <tr style="cursor: pointer" data-bind="drop: { enabled: name !== '.' && type !== 'file' && !$root.isS3(), value: $data }, event: { mouseover: toggleHover, mouseout: toggleHover, contextmenu: showContextMenu }, click: $root.viewFile, css: { 'row-selected': selected(), 'row-highlighted': highlighted() }">
|
|
|
<td class="center" data-bind="click: handleSelect" style="cursor: default">
|
|
<td class="center" data-bind="click: handleSelect" style="cursor: default">
|
|
|
<div data-bind="visible: name != '..', css: { hueCheckbox: name != '..', 'fa': name != '..', 'fa-check': selected }"></div>
|
|
<div data-bind="visible: name != '..', css: { hueCheckbox: name != '..', 'fa': name != '..', 'fa-check': selected }"></div>
|
|
|
</td>
|
|
</td>
|
|
@@ -534,7 +534,7 @@ from django.utils.translation import ugettext as _
|
|
|
<a href="#" data-bind="click: $root.viewFile"><i class="fa fa-level-up"></i></a>
|
|
<a href="#" data-bind="click: $root.viewFile"><i class="fa fa-level-up"></i></a>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
<!-- ko if: name != '..' -->
|
|
<!-- ko if: name != '..' -->
|
|
|
- <strong><a href="#" data-bind="drag: { value: $data }, click: $root.viewFile, text: name, attr: { 'draggable': $.inArray(name, ['.', '..', '.Trash']) === -1 }"></a></strong>
|
|
|
|
|
|
|
+ <strong><a href="#" data-bind="drag: { value: $data }, click: $root.viewFile, text: name, attr: { 'draggable': $.inArray(name, ['.', '..', '.Trash']) === -1 && !$root.isS3()}"></a></strong>
|
|
|
<!-- /ko -->
|
|
<!-- /ko -->
|
|
|
</td>
|
|
</td>
|
|
|
<td>
|
|
<td>
|