From ea0a180f8c9173d597ce6c87821cee976e3700a2 Mon Sep 17 00:00:00 2001 From: Rico Hoppe Date: Tue, 20 Feb 2024 17:45:01 +0000 Subject: [PATCH] nopaste/view: restyled the page --- src/templates/nopaste/view.html | 53 ++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 18 deletions(-) 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 %} -