]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs: Make the wiki footer smaller
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Oct 2023 16:47:05 +0000 (16:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Oct 2023 16:47:05 +0000 (16:47 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/docs/page.html

index 5f1ad1f2967b7f021d3b6d427f7821941e61b4cc..9099524484b4962d3d6dfc9c033ab6c94c544155 100644 (file)
@@ -38,6 +38,8 @@
                                                {% raw page.html %}
                                        </div>
 
+                                       <hr>
+
                                        <div class="block">
                                                <a class="button is-primary is-fullwidth" href="{{ os.path.join(request.path, "_edit") }}">
                                                        <span class="icon-text">
                                        </div>
 
                                        <div class="block">
-                                               <div class="level">
-                                                       <div class="level-left">
-                                                               {% if current_user %}
-                                                                       {% if page.is_watched_by(current_user) %}
-                                                                               <a class="level-item" href="{{ os.path.join(page.url, "_unwatch") }}">
-                                                                                       <i class="fas fa-star" title="{{ _("Stop watching this page") }}"></i>
-                                                                               </a>
-                                                                       {% else %}
-                                                                               <a class="level-item" href="{{ os.path.join(page.url, "_watch") }}">
-                                                                                       <i class="far fa-star" title="{{ _("Watch this page") }}"></i>
-                                                                               </a>
+                                               <small>
+                                                       <div class="level">
+                                                               <div class="level-left">
+                                                                       {% if current_user %}
+                                                                               {% if page.is_watched_by(current_user) %}
+                                                                                       <a class="level-item" href="{{ os.path.join(page.url, "_unwatch") }}">
+                                                                                               <i class="fas fa-star" title="{{ _("Stop watching this page") }}"></i>
+                                                                                       </a>
+                                                                               {% else %}
+                                                                                       <a class="level-item" href="{{ os.path.join(page.url, "_watch") }}">
+                                                                                               <i class="far fa-star" title="{{ _("Watch this page") }}"></i>
+                                                                                       </a>
+                                                                               {% end %}
                                                                        {% end %}
-                                                               {% end %}
-
-                                                               <a class="level-item" href="{{ request.path }}?action=revisions">
-                                                                       {{ _("Older Revisions") }}
-                                                               </a>
-
-                                                               <div class="level-item">
-                                                                       {{ locale.format_date(page.timestamp) }}
-                                                               </div>
 
-                                                               {% if page.author %}
                                                                        <a class="level-item" href="/users/{{ page.author.uid }}">
-                                                                               {{ page.author }}
+                                                                               {{ _("Last changed by %(author)s, %(when)s") % {
+                                                                                       "author" : page.author,
+                                                                                       "when"   : locale.format_date(page.timestamp, shorter=True),
+                                                                               } }}
                                                                        </a>
-                                                               {% end %}
+
+                                                                       <a class="level-item" href="{{ request.path }}?action=revisions">
+                                                                               {{ _("View Older Revisions") }}
+                                                                       </a>
+                                                               </div>
                                                        </div>
-                                               </div>
+                                               </small>
                                        </div>
                                </div>
                        </div>