]> git.ipfire.org Git - ipfire.org.git/commitdiff
dnsbl: domains: Show a pop-up to encourage people to report
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Jan 2026 17:23:06 +0000 (17:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Jan 2026 17:23:06 +0000 (17:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/dnsbl/lists/domain.html

index c9cfa1d8ad513d64fd1b33648c2e311ceb1a8ff3..061711e5f12643643632131456c899ccdcccbe97 100644 (file)
                </div>
        </section>
 
+       <section class="section">
+               <div class="container">
+                       <div class="notification">
+                               {% set blocked = False %}
+
+                               {# Is this domain blocked? #}
+                               {% for event in events %}
+                                       {% if event.blocks %}
+                                               {% set blocked = True %}
+                                       {% end %}
+                                       {% break %}
+                               {% end %}
+
+                               <div class="columns is-vcentered">
+                                       <div class="column">
+                                               {% if blocked %}
+                                                       <strong>
+                                                               {{ _("Do you think this domain should not be blocked?") }}
+                                                       </strong>
+                                               {% else %}
+                                                       <strong>
+                                                               {{ _("Do you think this domain should be blocked?") }}
+                                                       </strong>
+                                               {% end %}
+
+                                               {{ _("Send a report and help us to improve IPFire DNSBL.") }}
+                                       </div>
+
+                                       <div class="column is-narrow">
+                                               <a class="button is-primary is-small" href="/dnsbl/report?list={{ list.slug }}&amp;name={{ name }}">
+                                                       {{ _("Report %s") % name }}
+                                               </a>
+                                       </div>
+                               </div>
+                       </div>
+               </div>
+       </section>
+
        {# History #}
        {% if events %}
                <section class="section">