]> git.ipfire.org Git - ipfire.org.git/commitdiff
dnsbl: Update the header of the lists page
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Dec 2025 12:56:16 +0000 (12:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Dec 2025 12:56:16 +0000 (12:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/dnsbl.py
src/templates/dnsbl/list.html

index a0950f1a0c9da8177746b4b7a442e4a979f4c729..b1940ceedd82c3ba3ddfbc3d7c6d12f7bc3d7eff 100644 (file)
@@ -107,6 +107,9 @@ class List(Model):
        """
                Represents a list
        """
+       def __str__(self):
+               return self.name
+
        # Name
        name : str
 
index 5c00ee478873953964689dcf20f360ad51b7729c..a7f7061831ddb0b85fdaf32ee8cbfd2636a90a41 100644 (file)
@@ -2,23 +2,42 @@
 
 {% block head %}
        {% module OpenGraph(
-               title=_("IPFire DNSBL - %s") % list.name,
+               title=_("IPFire DNSBL - %s") % list,
                description=list.description,
        ) %}
 {% end block %}
 
-{% block title %}
-       {{ _("IPFire DNSBL") }}{% if list.description %} - {{ list.description }}{% end %}
-{% end block %}
+{% block title %}{{ _("IPFire DNSBL") }} - {{ list }}{% end block %}
 
 {% block container %}
-       <section class="hero">
+       <section class="hero is-dark">
                <div class="hero-body">
                        <div class="container">
+                               <nav class="breadcrumb" aria-label="breadcrumbs">
+                                       <ul>
+                                               <li>
+                                                       <a href="/dnsbl">
+                                                               {{ _("IPFire DNSBL") }}
+                                                       </a>
+                                               </li>
+
+                                               <li>
+                                                       <a href="/dnsbl/lists">
+                                                               {{ _("Lists") }}
+                                                       </a>
+                                               </li>
+
+                                               <li class="is-active">
+                                                       <a href="#" aria-current="page">{{ list }}</a>
+                                               </li>
+                                       </ul>
+                               </nav>
+
                                <h1 class="title">
-                                       {{ list.name }}
+                                       {{ list }}
                                </h1>
 
+                               {# Description #}
                                {% if list.description %}
                                        <h6 class="subtitle">
                                                {{ list.description }}
@@ -30,7 +49,7 @@
 
        {# Sources #}
        {% if sources %}
-               <section>
+               <section class="section">
                        <div class="container">
                                <h5 class="title is-5">{{ _("Sources") }}</h5>