mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-09 11:42:57 +00:00

Former-commit-id: f1c6de899994bcd274bd21582c9b0bf0d0ab375b [formerly 0550298211e8179fb7a46e49bd75979d439ce756] [formerly 82b40d8484796e90db6de64ad4f93c4901845688 [formerly ecb14f7810ce632c66dbb059fc18b0d17bca9554]] Former-commit-id: b24c64d18da7dd94a25fd26d90fb41c818b1b19a [formerly 478a12fba0294b74bb289ef8356b855f21808100] Former-commit-id: eec4a78fe25ad9f3e713b5860f0bb839654f7413
25 lines
637 B
Cheetah
25 lines
637 B
Cheetah
{{ 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 }}
|