diff --git a/assets/templates/actions.tmpl b/assets/templates/actions.tmpl index cbe5e353..2dfb4f45 100644 --- a/assets/templates/actions.tmpl +++ b/assets/templates/actions.tmpl @@ -1,6 +1,16 @@ {{ define "actions" }} -
open_in_new
-{{ if .IsDir }}
mode_edit
{{ end }} -
file_download
-
delete
+
+ open_in_new +
+ {{ if .IsDir }} +
+ mode_edit +
+ {{ end }} +
+ file_download +
+
+ delete +
{{ end }} diff --git a/assets/templates/base.tmpl b/assets/templates/base.tmpl index 4c2fac58..d65d17bc 100644 --- a/assets/templates/base.tmpl +++ b/assets/templates/base.tmpl @@ -1,62 +1,101 @@ - - {{.Name}} - - - - - - {{ if ne .Config.StyleSheet "" }}{{ end }} - {{ if .Config.HugoEnabled }} - - - - {{ end }} - - -
-
- {{ $lnk := .PreviousLink }} - {{ if ne $lnk ""}}{{ else }} - {{ end }} -

{{ if .Config.HugoEnabled }}Hugo{{ else }}File Manager{{ end }} {{ if ne .Name "/"}}chevron_right {{ .Name }}

{{ end }} -
-
- {{ if .IsDir}} -
- search -
-
view_headline
-
file_upload
- {{ else }} - {{ template "actions" . }} - {{ end }} + + {{.Name}} + + + + + + {{ if ne .Config.StyleSheet "" }} + + {{ end }} + {{ if .Config.HugoEnabled }} + + + + {{ end }} + + +
+
+ {{ $lnk := .PreviousLink }} + {{ if ne $lnk ""}} + + + {{ else }} + + {{ end }} +

+ + {{ if .Config.HugoEnabled }}Hugo{{ else }}File Manager{{ end }} + + {{ if ne .Name "/"}} + chevron_right + {{ .Name }}

+ {{ end }} +
+
+ {{ if .IsDir}} +
+ search + +
+
+ view_headline +
+
+ file_upload +
+ {{ else }} + {{ template "actions" . }} + {{ end }} - {{ if .Config.HugoEnabled }} - -
settings
-
exit_to_app
- {{ end }} -
-
+ {{ if .Config.HugoEnabled }} + + +
+ settings +
+
+
+ exit_to_app +
+ {{ end }} +
+
- {{ if .IsDir }} -
-
-
arrow_back
-

0 selected.

-
-
- {{ template "actions" . }} -
-
- {{ end }} -
- {{ template "content" .Data }} -
- - - + {{ if .IsDir }} +
+
+
+ arrow_back +
+

+ 0 + selected.

+
+
+ {{ template "actions" . }} +
+
+ {{ end }} +
+ {{ template "content" .Data }} +
+ + + \ No newline at end of file diff --git a/assets/templates/listing.tmpl b/assets/templates/listing.tmpl index b29a9296..43babb10 100644 --- a/assets/templates/listing.tmpl +++ b/assets/templates/listing.tmpl @@ -1,30 +1,32 @@ {{ define "content" }} -
-
- {{- range .Items}} - - {{- end}} -
-
+
+
+ {{- range .Items}} + + {{- end}} +
+
{{ end }} diff --git a/assets/templates/single.tmpl b/assets/templates/single.tmpl index eb8bfe6b..8f6b3b8d 100644 --- a/assets/templates/single.tmpl +++ b/assets/templates/single.tmpl @@ -1,18 +1,15 @@ {{ define "content" }} -
- +
{{ if eq .Type "image" }} - - {{ else if eq .Type "audio" }} - - {{ else if eq .Type "video" }} + + {{ else if eq .Type "audio" }} + + {{ else if eq .Type "video" }} - {{ else}} -
{{ .Content }}
+ {{ else}} +
{{ .Content }}
{{ end }} - -
+
{{ end }}