From: Rico Hoppe Date: Tue, 20 Feb 2024 17:45:01 +0000 (+0000) Subject: nopaste/view: restyled the page X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea0a180f8c9173d597ce6c87821cee976e3700a2;p=ipfire.org.git nopaste/view: restyled the page --- diff --git a/src/templates/nopaste/view.html b/src/templates/nopaste/view.html index a5028f67..bebbc309 100644 --- a/src/templates/nopaste/view.html +++ b/src/templates/nopaste/view.html @@ -3,34 +3,51 @@ {% block title %}{{ entry.subject or _("Paste %s") % entry.uuid }}{% end block %} {% block container %} -
-
-

{{ entry.subject or _("Paste %s") % entry.uuid }}

+
+
+
+ +

+ {{ entry.subject or _("Paste %s") % entry.uuid }} +

+
+ {{ _("Uploaded %s") % locale.format_date(entry.time_created) }} -

- {{ _("Uploaded %s") % locale.format_date(entry.time_created) }} - - {% if entry.account %} - {{ _("by") }} - {{ entry.account }} - {% else %} - {{ _("from %s") % entry.address }} - {% end %} -

+ {% if entry.account %} + {{ _("by") }} + {{ entry.account }} + {% else %} + {{ _("from %s") % entry.address }} + {% end %} +
+
-
+
{% if content %} -
+
{% module Code(content) %}
{% elif entry.mimetype.startswith("image/") %} - +
+
+ +
+
{% end %} -