aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
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 %}