From f2846ebde5971266a818e16e1a025f0c6a98b13d Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 22 Jun 2016 22:18:21 +0100 Subject: [PATCH] teampltes update --- assets/templates/actions.tmpl | 18 +++- assets/templates/base.tmpl | 155 +++++++++++++++++++++------------- assets/templates/listing.tmpl | 58 +++++++------ assets/templates/single.tmpl | 19 ++--- 4 files changed, 149 insertions(+), 101 deletions(-) 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" }} -
- -
+
+ +
{{ 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 }}