From 485f9ca69c96567fcd80226d0aecc3a44bb6af80 Mon Sep 17 00:00:00 2001 From: angrynode Date: Sat, 15 Nov 2025 11:48:54 +0100 Subject: [PATCH 1/2] templates: Remove/disable unused form parts --- templates/index.html | 8 ++------ templates/sources/magnet.html | 19 ++++++++++++------- templates/sources/torrent.html | 20 +++++++++++++------- 3 files changed, 27 insertions(+), 20 deletions(-) diff --git a/templates/index.html b/templates/index.html index 05a8542..60f4e19 100755 --- a/templates/index.html +++ b/templates/index.html @@ -10,7 +10,7 @@

Download files

{% endif %} -
+ {#
@@ -25,6 +25,7 @@

Download files

+ #}
@@ -42,11 +43,6 @@

OR

-
- -
-
- {% if categories.len() == 0 %} {% endif %} + {% if let Some(error) = post_error %} +
+

{{ error }}

+
+ {% endif %} + {#
diff --git a/templates/magnet.html b/templates/magnet.html new file mode 100644 index 0000000..ee25b78 --- /dev/null +++ b/templates/magnet.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block main %} +You successfully uploaded magnet {{ magnet.name() }} +{% endblock main %} diff --git a/templates/sources/magnet.html b/templates/sources/magnet.html index 90e9e62..7993cb8 100755 --- a/templates/sources/magnet.html +++ b/templates/sources/magnet.html @@ -12,7 +12,7 @@

- +