diff --git a/templates/_file_detail.pages.tmpl b/templates/_file_detail.pages.tmpl index 7333e98..02930ed 100644 --- a/templates/_file_detail.pages.tmpl +++ b/templates/_file_detail.pages.tmpl @@ -1,14 +1,13 @@ +{{ define "_file_detail" }}
- {{ with .Entry }} -

{{ .Name }}

-

Type : {{ ext .Name }}

-

Taille : {{ printf "%.1f KB" (toKB .Size) }}

-

Modifié le : {{ .ModTime.Format "02 Jan 2006 15:04" }}

- {{ if and (not .IsDir) (or (hasSuffix .Name ".jpg") (hasSuffix .Name ".png")) }} -
- -
- {{ end }} +

{{ .Entry.Name }}

+

Type : {{ ext .Entry.Name }}

+

Taille : {{ printf "%.1f KB" (toKB .Entry.Size) }}

+

Modifié : {{ .Entry.ModTime.Format "02 Jan 2006 15:04" }}

+ {{ if and (not .Entry.IsDir) (or (hasSuffix .Entry.Name ".jpg") (hasSuffix .Entry.Name ".png")) }} +
+ +
{{ end }}
- +{{ end }} diff --git a/templates/_file_list.pages.tmpl b/templates/_file_list.pages.tmpl index d52f0b7..4de88d6 100644 --- a/templates/_file_list.pages.tmpl +++ b/templates/_file_list.pages.tmpl @@ -1,30 +1,16 @@ +{{ define "_file_list" }}
{{- range .Entries }}
-
-
- {{ if .IsDir }} - - {{ else if or (hasSuffix .Name ".jpg") (hasSuffix .Name ".png") }} - {{ .Name }} - {{ else }} - - {{ end }} -
-
-
-

{{ .Name }}

-
+
{{- end }}
+{{ end }} diff --git a/templates/dashboard.pages.tmpl b/templates/dashboard.pages.tmpl index 2ce7363..05a9e78 100644 --- a/templates/dashboard.pages.tmpl +++ b/templates/dashboard.pages.tmpl @@ -43,7 +43,11 @@ -
  • Folders
  • +
  • + Folders +
  • Settings
  • diff --git a/templates/folders.pages.tmpl b/templates/folders.pages.tmpl index cf5e6de..4978c75 100644 --- a/templates/folders.pages.tmpl +++ b/templates/folders.pages.tmpl @@ -1,80 +1,71 @@ +{{ define "folders" }} +
    +
    +
    + +
    + +
    - -
    -
    -
    - - -
    - + {{- end }} + + + +
    + {{ template "_file_list" . }}
    +
    - -
    - - -
    - {{ template "_file_list.pages.tmpl" . }} -
    + +
    +
    + Sélectionnez un fichier ou un dossier…
    - - -
    -
    - Sélectionnez un fichier ou dossier… -
    -
    -
    -
    - +
    +
    +{{ end }}