mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
simple updates
This commit is contained in:
parent
ea475d2994
commit
eb79371421
@ -1128,7 +1128,7 @@ footer a:hover {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#bottom-bar>*:first-child {
|
#bottom-bar>*:first-child {
|
||||||
max-width: calc(100% - 16em);
|
max-width: calc(100% - 16em) !important;
|
||||||
}
|
}
|
||||||
#main-actions {
|
#main-actions {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -79,13 +79,17 @@
|
|||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .IsDir }}
|
||||||
<div class="action" id="open">
|
<div class="action" id="open">
|
||||||
<i class="material-icons" title="See raw">open_in_new</i>
|
<i class="material-icons" title="See raw">open_in_new</i>
|
||||||
|
<span>See raw</span>
|
||||||
</div>
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- if .User.AllowEdit }}
|
{{- if and (.User.AllowEdit) (.IsDir) }}
|
||||||
<div class="action" id="move">
|
<div class="action" id="move">
|
||||||
<i class="material-icons" title="Move">forward</i>
|
<i class="material-icons" title="Move">forward</i>
|
||||||
|
<span>Move file</span>
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
@ -95,7 +99,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .User.AllowEdit }}
|
{{- if and .User.AllowEdit .IsDir }}
|
||||||
<div class="action" id="delete">
|
<div class="action" id="delete">
|
||||||
<i class="material-icons" title="Delete">delete</i><span>Delete</span>
|
<i class="material-icons" title="Delete">delete</i><span>Delete</span>
|
||||||
</div>
|
</div>
|
||||||
@ -127,6 +131,26 @@
|
|||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if not .IsDir }}
|
||||||
|
<div class="action" id="open">
|
||||||
|
<i class="material-icons" title="See raw">open_in_new</i>
|
||||||
|
<span>See raw</span>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if and .User.AllowEdit (not .IsDir) }}
|
||||||
|
<div class="action" id="delete">
|
||||||
|
<i class="material-icons" title="Delete">delete</i><span>Delete</span>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if and (.User.AllowEdit) (not .IsDir) }}
|
||||||
|
<div class="action" id="move">
|
||||||
|
<i class="material-icons" title="Move">forward</i>
|
||||||
|
<span>Move file</span>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
<div {{ if .IsDir }}data-dropdown{{ end }} class="action" id="download">
|
<div {{ if .IsDir }}data-dropdown{{ end }} class="action" id="download">
|
||||||
{{- if not .IsDir}}<a href="?download=true">{{ end }}
|
{{- if not .IsDir}}<a href="?download=true">{{ end }}
|
||||||
<i class="material-icons" title="Download">file_download</i><span>Download</span>
|
<i class="material-icons" title="Download">file_download</i><span>Download</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user