aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGravatar Joseph <[email protected]>2018-04-18 00:00:50 +0100
committerGravatar Joseph <[email protected]>2018-04-18 00:00:50 +0100
commit2788fa31d2736cbd0f8147901c95ce9ef7680740 (patch)
tree2c28f57fe88a16c645944e88e0e380044e18a70b /templates
parentFix JS again (diff)
Fix sidebar routes
Diffstat (limited to 'templates')
-rw-r--r--templates/wiki/base.html28
1 files changed, 23 insertions, 5 deletions
diff --git a/templates/wiki/base.html b/templates/wiki/base.html
index 5b8a83a7..87686a83 100644
--- a/templates/wiki/base.html
+++ b/templates/wiki/base.html
@@ -86,15 +86,33 @@
</li>
{% endif %}
- {% if current_page != "source" %}
+ {% if current_page != "history.show" %}
+ {% if current_page == "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
+ </a>
+ </li>
+ {% else %}
+ <li>
+ <a href="{{ url_for("wiki.history.show", page=page) }}">
+ <i class="uk-icon fas fa-fw fa-history"></i> &nbsp;Revisions
+ </a>
+ </li>
+ {% endif %}
+ {% else %}
<li>
- <a href="{{ url_for("wiki.source", page=page) }}">
- <i class="uk-icon fas fa-fw fa-code"></i> &nbsp;Source
+ <a href="{{ url_for("wiki.page", page=page) }}">
+ <i class="uk-icon fas fa-fw fa-arrow-left"></i> &nbsp;Back
</a>
</li>
+ {% endif %}
+
+
+ {% if current_page != "source" %}
<li>
- <a href="{{ url_for("wiki.history.show", page=page) }}">
- <i class="uk-icon fas fa-fw fa-history"></i> &nbsp;Revisions
+ <a href="{{ url_for("wiki.source", page=page) }}">
+ <i class="uk-icon fas fa-fw fa-code"></i> &nbsp;Source
</a>
</li>
{% else %}