From: Michael Tremer Date: Wed, 24 Oct 2018 12:31:44 +0000 (+0100) Subject: nopaste: Remove download button and add button to the bottom X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2f81dbdf4406ee2e46d523d6feacb680fb54371;p=ipfire.org.git nopaste: Remove download button and add button to the bottom Signed-off-by: Michael Tremer --- diff --git a/src/templates/nopaste/view.html b/src/templates/nopaste/view.html index 4c04e5df..e9976461 100644 --- a/src/templates/nopaste/view.html +++ b/src/templates/nopaste/view.html @@ -13,39 +13,30 @@ {% if entry.account %} {{ _("by") }} - {{ entry.account }}, + {{ entry.account }} {% else %} - {{ _("from %s") % entry.address }}, + {{ _("from %s") % entry.address }} {% end %} -
-
- {% if content %} - - - {{ _("Download") }} - - {% end %} -
-
-
{% if content %} - {% module Code(content) %} - {% elif entry.mimetype.startswith("image/") %} - - {% else %} -
- +
+ {% module Code(content) %}
+ +
+ {% elif entry.mimetype.startswith("image/") %} + + +
{% end %} + + + + {{ _("Download") }} ({{ format_size(entry.size) }}) +