]> git.ipfire.org Git - ipfire.org.git/commitdiff
dnsbl: Simplify the layout
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Dec 2025 13:04:21 +0000 (13:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Dec 2025 13:04:21 +0000 (13:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/dnsbl/list.html
src/templates/dnsbl/lists.html
src/templates/dnsbl/modules/lists.html

index a7f7061831ddb0b85fdaf32ee8cbfd2636a90a41..e583e3ae3aff8e108235c89f12c3b97998ceb2fb 100644 (file)
                                        <tbody>
                                                {% for source in sorted(sources) %}
                                                        <tr>
-                                                               <th scope="row">
+                                                               <td>
                                                                        <a href="{{ source.url }}" target="_blank">
                                                                                {{ source.name }}
                                                                        </a>
 
                                                                        <br>
 
-                                                                       <small>{{ source.license }}</small>
-                                                               </th>
+                                                                       <small class="has-text-grey">
+                                                                               {{ source.license }}
+                                                                       </small>
+                                                               </td>
 
                                                                <td class="has-text-right">
                                                                        {{ locale.format_date(source.updated_at, shorter=True) }}
index 7c78b96a0ebb965974722181e212864027463347..b4661e0cefea0b13515ed525fe166098b6278559 100644 (file)
@@ -9,7 +9,7 @@
 {% block title %}{{ _("IPFire DNSBL") }} - {{ _("Lists") }}{% 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">
                                                </li>
                                        </ul>
                                </nav>
+
+                               <h1 class="title">
+                                       {{ _("Lists") }}
+                               </h1>
                        </div>
                </div>
        </section>
 
-       <section>
+       <section class="section">
                <div class="container">
                        {% module DNSBLLists(lists) %}
                </div>
index 71d72347e7b55b023f525ecab160b56434190cf2..c4e657d4cb99f42df3bc9004a32fc23f41911136 100644 (file)
@@ -1,23 +1,16 @@
-<table class="table is-fullwidth">
-       <tbody>
-               {% for l in sorted(lists) %}
-                       <tr>
-                               <th scope="row">
-                                       <a href="/dnsbl/lists/{{ l.slug }}">
-                                               {{ l.name }}
-                                       </a>
-                               </th>
+{% for l in sorted(lists) %}
+       <div class="block">
+               <h5 class="title is-5">
+                       <a href="/dnsbl/lists/{{ l.slug }}">
+                               {{ l }}
+                       </a>
+               </h5>
 
-                               <td>
-                                       {% if l.description %}
-                                               {{ l.description }}
-                                       {% end %}
-                               </td>
-
-                               <td class="has-text-right">
-                                       {{ _("%s Domain", "%s Domains", l.total_domains) % format_number(l.total_domains) }}
-                               </td>
-                       </tr>
+               {# Description #}
+               {% if l.description %}
+                       <h6 class="subtitle is-6">
+                               {{ l.description }}
+                       </h6>
                {% end %}
-       </tbody>
-</table>
+       </div>
+{% end %}