{{ define "right-side-actions" }} {{- if .IsDir }} {{- if eq .Display "mosaic" }}view_list{{ else }}view_module{{ end }} Switch view {{- end }} {{- if and (.User.AllowNew) (.IsDir) }} {{- end }} {{- if and .User.AllowEdit (not .IsDir) }} {{- end }} {{ end }} {{ define "left-side-actions" }} {{- 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 }}