From: Michael Tremer Date: Fri, 23 Feb 2024 20:19:10 +0000 (+0000) Subject: nopaste: Simplify the layout of the upload pages X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98083479392f326cfaea875628dbf8897bed64b6;p=ipfire.org.git nopaste: Simplify the layout of the upload pages Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 30cee3b2..b434e59b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -301,6 +301,7 @@ templates_netbootdir = $(templatesdir)/netboot templates_nopaste_DATA = \ src/templates/nopaste/create.html \ + src/templates/nopaste/upload.html \ src/templates/nopaste/view.html templates_nopastedir = $(templatesdir)/nopaste diff --git a/src/templates/nopaste/create.html b/src/templates/nopaste/create.html index 7cafb5cb..48d59ba4 100644 --- a/src/templates/nopaste/create.html +++ b/src/templates/nopaste/create.html @@ -3,21 +3,22 @@ {% block title %}{{ _("New Paste") }}{% end block %} {% block container %} -
-
-
-

{{ _("New Paste") }}

-
-
-
-
-
-
-
+
+
+ {% raw xsrf_form_html() %} + {% block paste %} +
+
+ +
+
+ {% end %} +
@@ -27,13 +28,6 @@
-
-
- -
-
-
@@ -53,8 +47,13 @@
-
diff --git a/src/templates/nopaste/upload.html b/src/templates/nopaste/upload.html index f953bfc9..a6475e45 100644 --- a/src/templates/nopaste/upload.html +++ b/src/templates/nopaste/upload.html @@ -1,82 +1,26 @@ -{% extends "../base.html" %} - -{% block title %}{{ _("Upload File") }}{% end block %} - -{% block container %} -
-
-
-

{{ _("Upload File") }}

-
-
-
- -
-
-
-
- - {% raw xsrf_form_html() %} - -
- - -
-
- -
-
-
- -
- - -
- -
-
- -
- - -
-
- -
-
-
- -
-
- -
-
- -
+{% extends "create.html" %} + +{% block paste %} +
+ + +
+
+
-
+
{% end block %}