mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
a7b50c2de1
Former-commit-id: 032b13b1f3a6216ae6bafde75f583038916b4f74 [formerly 80588a95ad5168ecab65e3d8cc8968bad9a20a6b] [formerly 94b306854bac60361ddf1b945a3edec7204d1327 [formerly 193adea6bb
]]
Former-commit-id: 67b5219c1a6488c1a797bec42a0dec2036441a48 [formerly 28183c674806c3125a285a48905a01e1e835be7e]
Former-commit-id: d2169aab351eab252ea34e07bb943411aa8e9cb4
34 lines
867 B
Cheetah
34 lines
867 B
Cheetah
{{ define "right" }}
|
|
{{- if not .IsEditor }}
|
|
|
|
<button aria-label="Select multiple" class="action mobile-only" id="multiple-selection-activate">
|
|
<i class="material-icons">check_circle</i>
|
|
<span>Select</span>
|
|
</button>
|
|
{{- end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ define "left" }}
|
|
{{- if and (not .IsDir) (.User.AllowEdit) }}
|
|
{{- if .Editor}}
|
|
|
|
{{- if eq .Data.Mode "markdown" }}
|
|
<button aria-label="Preview" class="action" id="preview" onclick="notImplemented(event);">
|
|
<i class="material-icons" title="Preview">remove_red_eye</i>
|
|
</button>
|
|
{{- end }}
|
|
|
|
{{- if eq .Data.Visual true }}
|
|
<button aria-label="Toggle edit source" class="action" id="edit-source">
|
|
<i class="material-icons" title="Toggle edit source">code</i>
|
|
</button>
|
|
{{- end }}
|
|
|
|
{{/* end if editor */}}
|
|
|
|
<button aria-label="Save" class="action" id="save">
|
|
<i class="material-icons" title="Save">save</i>
|
|
</button>
|
|
{{- end }}
|