From a0444fc0e305d63749f287eb9f224350b5d11c91 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 7 May 2025 06:25:52 +0000
Subject: [PATCH] templates: Moved the links in the bottom bar to the top bar.
This makes these easily visible and accessible as soon as the page loads,
instead of hoping the user scrolls to the bottom and finds it.
Fixes https://github.com/libsdl-org/sdlwiki/issues/131
---
static_files/ghwikipp.css | 3 +++
templates/html_footer | 16 +---------------
templates/html_startcontent | 17 ++++++++++++++++-
3 files changed, 20 insertions(+), 16 deletions(-)
diff --git a/static_files/ghwikipp.css b/static_files/ghwikipp.css
index 1a02077..0fb4dc0 100644
--- a/static_files/ghwikipp.css
+++ b/static_files/ghwikipp.css
@@ -68,6 +68,9 @@ tr:nth-child(even) {
}
.wikitopbanner {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
background-color: #efefef;
padding: 10px;
margin-bottom: 10px;
diff --git a/templates/html_footer b/templates/html_footer
index e1d602d..f68e1d6 100644
--- a/templates/html_footer
+++ b/templates/html_footer
@@ -1,23 +1,9 @@
<div class='wikibottombanner'>
<center>
-<p>
-[
-<a href="/">front page</a>
-|
-<a href="/wiki/index">index</a>
-|
-<a href="/wiki/search">search</a>
-|
-<a href="@githuburl@/commits/@githubmainbranch@">recent changes</a>
-|
-<a href="@githuburl@">git repo</a>
-|
-<a href="/static_files/offline/@offlinebasename@.zip">offline html</a>
-]
-</p>
<p>All wiki content is licensed under <a href="@wikilicenseurl@">@wikilicense@</a>.<br/>
Wiki powered by <a href="https://github.com/libsdl-org/ghwikipp">ghwikipp</a>.</p>
+</center>
</div>
</body></html>
diff --git a/templates/html_startcontent b/templates/html_startcontent
index 6e970b8..ecd60e9 100644
--- a/templates/html_startcontent
+++ b/templates/html_startcontent
@@ -1,4 +1,19 @@
</head><body>
<div class='wikitopbanner'>
-<a href="@baseurl@" style="color: inherit; text-decoration: inherit;"><font size="+3">@wikiname@</font></a>
+<div align='left'><a href="@baseurl@" style="color: inherit; text-decoration: inherit;"><font size="+3">@wikiname@</font></a></div>
+<div align='right'>
+[
+<a href="/">front page</a>
+|
+<a href="/wiki/index">index</a>
+|
+<a href="/wiki/search">search</a>
+|
+<a href="@githuburl@/commits/@githubmainbranch@">recent changes</a>
+|
+<a href="@githuburl@">git repo</a>
+|
+<a href="/static_files/offline/@offlinebasename@.zip">offline html</a>
+]
+</div>
</div>