From: Michael Tremer Date: Mon, 7 Oct 2019 17:29:29 +0000 (+0100) Subject: wiki: Improve layout of file detail page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ade035e55cb2517fc82e3c0f2000d7d05f509a76;p=ipfire.org.git wiki: Improve layout of file detail page Signed-off-by: Michael Tremer --- diff --git a/src/templates/wiki/files/detail.html b/src/templates/wiki/files/detail.html index e8a87482..c4fe5ea0 100644 --- a/src/templates/wiki/files/detail.html +++ b/src/templates/wiki/files/detail.html @@ -24,6 +24,18 @@ {{ _("Download") }} ({{ format_size(file.size) }}) + {% if file.is_image() %} +
{{ _("Usage") }}
+ +
![](./{{ file.filename }})
+ +

{{ _("Or with an optional caption") }}

+ +
![](./{{ file.filename }} "{{ _("Caption") }}")
+ {% end %} + +
{{ _("Details") }}
+
{{ _("Filename") }}
{{ file.filename }}
@@ -42,34 +54,25 @@
{{ _("Deleted at") }}
{{ locale.format_date(file.deleted_at) }}
{% end %} -
- {% if file.is_image() %} -
{{ _("Usage") }}
- -
![](./{{ file.filename }})
- -

{{ _("Or with an optional caption") }}

- -
![](./{{ file.filename }} "{{ _("Caption") }}")
- {% end %} + {% set revisions = file.get_revisions() %} + {% if len(revisions) > 1 %} +
{{ _("Other Revisions") }}
+
+ +
+ {% end %} + - {% set revisions = file.get_revisions() %} - {% if len(revisions) > 1 %} -
{{ _("Other Revisions") }}
- - - {% end %} +
{{ _("Upload Newer Revision") }}
{% raw xsrf_form_html() %} @@ -82,6 +85,10 @@ + + + {{ _("Uploading a new file to replaces this one to fix any errata in the current version") }} +