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