summaryrefslogtreecommitdiffstats
path: root/docs/overrides/main.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-28 06:11:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-28 06:11:39 +0000
commit1fd6a618b60d7168fd8f37585d5d39d22d775afd (patch)
treefbc6d0c213b8acdd0a31deafe5c5fc0d05a3a312 /docs/overrides/main.html
parentInitial commit. (diff)
downloadanta-1fd6a618b60d7168fd8f37585d5d39d22d775afd.tar.xz
anta-1fd6a618b60d7168fd8f37585d5d39d22d775afd.zip
Adding upstream version 0.13.0.upstream/0.13.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/overrides/main.html')
-rw-r--r--docs/overrides/main.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/overrides/main.html b/docs/overrides/main.html
new file mode 100644
index 0000000..2863221
--- /dev/null
+++ b/docs/overrides/main.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+
+{% block outdated %}
+ <div id="current-version"> </div>
+ <script>
+ let message = "You're not viewing the latest version."
+ // There is probably a nicer method retrieving the value of the
+ // version element but it is loaded after the outdated block
+ let current = window.location.pathname.split("/")[1]
+ if (current == "main") {
+ message = "This is the documentation from the 'main' branch which is not a stable release."
+ }
+ message = message + '<a href="{{ "../" ~ base_url }}"> <strong>Click here to go to latest stable release.</strong> </a>'
+ document.getElementById("current-version").innerHTML = message;
+ </script>
+ {{app}}
+{% endblock %}