]> git.ipfire.org Git - ipfire.org.git/commitdiff
wiki: Add usage instructions for images
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Nov 2018 16:09:20 +0000 (16:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Nov 2018 16:09:20 +0000 (16:09 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/wiki/files/detail.html

index 21cab20f633a06f2bfd2cf80b0e749b1eed50cff..6ed3870fba45b7a498cb8041ee80553e298456df 100644 (file)
@@ -24,7 +24,7 @@
                                {{ _("Download") }} ({{ format_size(file.size) }})
                        </a>
 
-                       <dl class="row mb-0">
+                       <dl class="row">
                                <dt class="col-sm-3">{{ _("Filename") }}</dt>
                                <dd class="col-sm-9">{{ file.filename }}</dd>
 
                                <dt class="col-sm-3">{{ _("Uploaded at") }}</dt>
                                <dd class="col-sm-9">{{ locale.format_date(file.created_at) }}</dd>
                        </dl>
+
+                       {% if file.is_image() %}
+                               <h6>{{ _("Usage") }}</h6>
+
+                               <pre><code>![{{ _("Caption")}}]({{ file.filename }})</code></pre>
+                       {% end %}
                </div>
        </div>
 {% end block %}