]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs/modules/list: restyled the module
authorRico Hoppe <rico.hoppe@ipfire.org>
Thu, 12 Oct 2023 18:45:45 +0000 (18:45 +0000)
committerRico Hoppe <rico.hoppe@ipfire.org>
Thu, 12 Oct 2023 18:45:45 +0000 (18:45 +0000)
src/templates/docs/modules/list.html

index 3891a291bad71a90c279d6c6200d4e2e082d77e7..fd7546edd1cf2839928ee694117a83acab9c6b0a 100644 (file)
@@ -1,40 +1,42 @@
 {% for page in pages %}
-       <strong class="mb-0">
-               {% if show_breadcrumbs %}
-                       {% for url, title in page.breadcrumbs %}
-                               <a href="{{ url }}">{{ title }}</a> /
+       <div class="block">
+               <strong>
+                       {% if show_breadcrumbs %}
+                               {% for url, title in page.breadcrumbs %}
+                                       <a href="{{ url }}">{{ title }}</a> /
+                               {% end %}
                        {% end %}
-               {% end %}
 
-               <a href="{{ page.url }}{% if link_revision %}?revision={{ page.timestamp.isoformat() }}{% end %}">{{ page.title }}</a>
-       </strong>
+                       <a href="{{ page.url }}{% if link_revision %}?revision={{ page.timestamp.isoformat() }}{% end %}">{{ page.title }}</a>
+               </strong>
 
-       <p class="text-muted small">
-               {% if show_author %}
-                       {{ _("Last edited %s") % locale.format_date(page.timestamp, shorter=True, relative=False) }}
+               <p class="is-size-6">
+                       {% if show_author %}
+                               {{ _("Last edited %s") % locale.format_date(page.timestamp, shorter=True, relative=False) }}
 
-                       {% if page.author %}
-                               {{ _("by") }}
-                               <a href="/users/{{ page.author.uid }}">{{ page.author }}</a>
+                               {% if page.author %}
+                                       {{ _("by") }}
+                                       <a href="/users/{{ page.author.uid }}">{{ page.author }}</a>
+                               {% end %}
                        {% end %}
-               {% end %}
 
-               {% if show_changes %}
-                       {% if page.changes %}
-                               &bull; {{ page.changes }}
+                       {% if show_changes %}
+                               {% if page.changes %}
+                                       &bull; {{ page.changes }}
+                               {% end %}
+
+                               {% if page.previous_revision %}
+                                       <a href="{{ page.url }}?action=diff&a={{ page.previous_revision.timestamp.isoformat() }}&b={{ page.timestamp.isoformat() }}">
+                                               <span class="fas fa-exchange-alt ml-1"></span>
+                                       </a>
+                               {% end %}
                        {% end %}
 
-                       {% if page.previous_revision %}
-                               <a href="{{ page.url }}?action=diff&a={{ page.previous_revision.timestamp.isoformat() }}&b={{ page.timestamp.isoformat() }}">
-                                       <span class="fas fa-exchange-alt ml-1"></span>
+                       {% if not page.is_latest_revision() %}
+                               <a href="{{ page.url }}?action=restore&revision={{ page.timestamp.isoformat() }}" title="{{ _("Restore") }}">
+                                       <span class="fas fa-undo ml-1"></span>
                                </a>
                        {% end %}
-               {% end %}
-
-               {% if not page.is_latest_revision() %}
-                       <a href="{{ page.url }}?action=restore&revision={{ page.timestamp.isoformat() }}" title="{{ _("Restore") }}">
-                               <span class="fas fa-undo ml-1"></span>
-                       </a>
-               {% end %}
-       </p>
+               </p>
+       </div>
 {% end %}