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 }}
|