From c5ce99c3f30b14c0291ac275035b1909e5b8df0e Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Mon, 24 Jul 2017 15:46:39 +0200 Subject: [PATCH] upload page: use alerts, add alert about rules (#304) This changes the tracker announce URL message to be one of those bootstrap alert bubbles, and adds an additional warning which tells people to read the rules and not upload off-topic crap. --- nyaa/templates/upload.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/nyaa/templates/upload.html b/nyaa/templates/upload.html index ffdd932..cce3993 100644 --- a/nyaa/templates/upload.html +++ b/nyaa/templates/upload.html @@ -19,7 +19,25 @@
{{ upload_form.csrf_token }} - {% if config.ENFORCE_MAIN_ANNOUNCE_URL %}

Important: Please include {{ config.MAIN_ANNOUNCE_URL }} in your trackers

{% endif %} + {% if config.ENFORCE_MAIN_ANNOUNCE_URL %} +
+
+ +
+
+ {% endif %} +
+
+ +
+
{{ render_upload(upload_form.torrent_file, accept=".torrent") }}