From: Michael Tremer Date: Sun, 8 Feb 2026 16:48:25 +0000 (+0000) Subject: dbl: Encourage users to submit reports on the list page X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95e537b6622c875303b85f9a1b975f729ff42d0e;p=ipfire.org.git dbl: Encourage users to submit reports on the list page Signed-off-by: Michael Tremer --- diff --git a/src/templates/dbl/lists/show.html b/src/templates/dbl/lists/show.html index a6d5cfcd..4d8c7925 100644 --- a/src/templates/dbl/lists/show.html +++ b/src/templates/dbl/lists/show.html @@ -72,6 +72,12 @@ +
+
+ {% module DBLSubmitReport(list=list) %} +
+
+
diff --git a/src/templates/dbl/modules/submit-report.html b/src/templates/dbl/modules/submit-report.html index db89a02e..75ab8b4d 100644 --- a/src/templates/dbl/modules/submit-report.html +++ b/src/templates/dbl/modules/submit-report.html @@ -3,13 +3,19 @@
- {% if blocked %} - - {{ _("Do you think this domain should not be blocked?") }} - + {% if name %} + {% if blocked %} + + {{ _("Do you think this domain should not be blocked?") }} + + {% else %} + + {{ _("Do you think this domain should be blocked?") }} + + {% end %} {% else %} - {{ _("Do you think this domain should be blocked?") }} + Do you think something should be blocked? {% end %} @@ -19,7 +25,11 @@
diff --git a/src/web/dbl.py b/src/web/dbl.py index 1e2c7583..9beec10c 100644 --- a/src/web/dbl.py +++ b/src/web/dbl.py @@ -198,12 +198,16 @@ class SourcesModule(ui_modules.UIModule): class SubmitReportModule(ui_modules.UIModule): - def render(self, name, blocked=False, list=None): + def render(self, name=None, blocked=False, list=None): args = { - "name" : name, "block" : not blocked, } + if name: + args |= { + "name" : name, + } + if list: args |= { "list" : list.slug,