{{ define "info-button" }} {{ end }} {{ define "delete-button" }} {{ end }} {{ define "right-side-actions" }} {{ template "info-button" }} {{ end }} {{ define "right" }} {{- if not .IsEditor }} {{- if eq .Display "mosaic" }}view_list{{ else }}view_module{{ end }} Switch view {{- end }} {{- if and (.User.AllowNew) (not .IsEditor) }} {{- end }} {{- if and .User.AllowEdit (.IsEditor) }} {{- end }} {{ end }} {{ define "left-side-actions" }} {{ end }} {{ define "left" }} {{- if and (not .IsDir) (.User.AllowEdit) }} {{- if .Editor}} {{- if eq .Data.Mode "markdown" }} {{- end }} {{- if eq .Data.Visual true }} {{- end }} {{/* end if editor */}} {{- end }} {{/* end if not dir and AllowEdit */}} {{- end }} {{- if and .IsDir .User.AllowEdit }} {{- end }} {{ end }}