From a2f81dbdf4406ee2e46d523d6feacb680fb54371 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 24 Oct 2018 13:31:44 +0100 Subject: [PATCH] nopaste: Remove download button and add button to the bottom Signed-off-by: Michael Tremer --- src/templates/nopaste/view.html | 39 +++++++++++++-------------------- 1 file changed, 15 insertions(+), 24 deletions(-) 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) }}) +
-- 2.47.3