2017-06-27 18:00:58 +00:00
|
|
|
{{ define "right" }}
|
|
|
|
{{- if not .IsEditor }}
|
2017-06-26 19:38:40 +00:00
|
|
|
|
2017-06-29 08:11:46 +00:00
|
|
|
<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 }}
|
2017-06-26 19:38:40 +00:00
|
|
|
|
2017-06-27 18:00:58 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "left" }}
|
2017-06-29 08:11:46 +00:00
|
|
|
{{- 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 }}
|