From: Michael Tremer Date: Mon, 19 Nov 2018 16:09:20 +0000 (+0000) Subject: wiki: Add usage instructions for images X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75271a4346ca61174ed026939ade64b45f87eaab;p=ipfire.org.git wiki: Add usage instructions for images Signed-off-by: Michael Tremer --- diff --git a/src/templates/wiki/files/detail.html b/src/templates/wiki/files/detail.html index 21cab20f..6ed3870f 100644 --- a/src/templates/wiki/files/detail.html +++ b/src/templates/wiki/files/detail.html @@ -24,7 +24,7 @@ {{ _("Download") }} ({{ format_size(file.size) }}) -
+
{{ _("Filename") }}
{{ file.filename }}
@@ -38,6 +38,12 @@
{{ _("Uploaded at") }}
{{ locale.format_date(file.created_at) }}
+ + {% if file.is_image() %} +
{{ _("Usage") }}
+ +
![{{ _("Caption")}}]({{ file.filename }})
+ {% end %} {% end block %}