aboutsummaryrefslogtreecommitdiffstats
path: root/templates/wiki/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/wiki/base.html')
-rw-r--r--templates/wiki/base.html20
1 files changed, 12 insertions, 8 deletions
diff --git a/templates/wiki/base.html b/templates/wiki/base.html
index 9b31d83b..9fa07e9b 100644
--- a/templates/wiki/base.html
+++ b/templates/wiki/base.html
@@ -27,7 +27,7 @@
{% endblock %}
</head>
- <body class="page-{{ current_page }}">
+ <body class="page-{{ current_page.replace(".", "-") }}">
<div class="uk-offcanvas-content uk-flex uk-flex-column">
{% include "main/navigation.html" %}
<div class="uk-flex uk-flex-row uk-flex-1">
@@ -70,13 +70,17 @@
<i class="uk-icon fas fa-fw fa-cube"></i> &nbsp;Minecraft
</a></li>
- {% set ACTIONABLE_PAGES = ["page", "edit", "history.show", "history.compare", "source", "delete"] %}
+ {% set ACTIONABLE_PAGES = [
+ "wiki.page", "wiki.edit", "wiki.history.show",
+ "wiki.history.compare", "wiki.source", "wiki.delete",
+ "wiki.move"
+ ] %}
{% set actionable = current_page in ACTIONABLE_PAGES %}
{% if actionable %}
<li class="uk-nav-divider"></li>
- {% if current_page == "edit" %}
+ {% if current_page == "wiki.edit" %}
<li>
<a href="{{ url_for("wiki.page", page=page) }}">
<i class="uk-icon fas fa-fw fa-arrow-left"></i> &nbsp;Back
@@ -90,7 +94,7 @@
</li>
{% endif %}
- {% if current_page == "delete" %}
+ {% if current_page == "wiki.delete" %}
<li>
<a href="{{ url_for("wiki.page", page=page) }}">
<i class="uk-icon fas fa-fw fa-arrow-left"></i> &nbsp;Back
@@ -104,7 +108,7 @@
</li>
{% endif %}
- {% if current_page == "move" %}
+ {% if current_page == "wiki.move" %}
<li>
<a href="{{ url_for("wiki.page", page=page) }}">
<i class="uk-icon fas fa-fw fa-arrow-left"></i> &nbsp;Back
@@ -118,13 +122,13 @@
</li>
{% endif %}
- {% if current_page == "history.show" %}
+ {% if current_page == "wiki.history.show" %}
<li>
<a href="{{ url_for("wiki.page", page=page) }}">
<i class="uk-icon fas fa-fw fa-arrow-left"></i> &nbsp;Back
</a>
</li>
- {% elif current_page == "history.compare" %}
+ {% elif current_page == "wiki.history.compare" %}
<li>
<a href="{{ url_for("wiki.history.show", page=slug) }}">
<i class="uk-icon fas fa-fw fa-arrow-left"></i> &nbsp;Back
@@ -138,7 +142,7 @@
</li>
{% endif %}
- {% if current_page == "source" %}
+ {% if current_page == "wiki.source" %}
<li>
<a href="{{ url_for("wiki.page", page=page) }}">
<i class="uk-icon fas fa-fw fa-arrow-left"></i> &nbsp;Back