aboutsummaryrefslogtreecommitdiffstats
path: root/templates/wiki
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-04-12 11:59:39 +0100
committerGravatar Gareth Coles <[email protected]>2018-04-12 11:59:39 +0100
commite6e4f17f031f135873a64c7cae39e0a427fd48d0 (patch)
tree92aa78fc841a1568f8fe8cc34613596a12628df8 /templates/wiki
parentAdd page source view to wiki (diff)
[Wiki] Fix sidebar edit link
Diffstat (limited to 'templates/wiki')
-rw-r--r--templates/wiki/base.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/wiki/base.html b/templates/wiki/base.html
index 9464782b..fa74f078 100644
--- a/templates/wiki/base.html
+++ b/templates/wiki/base.html
@@ -39,13 +39,14 @@
<i class="fas fa-fw fa-pencil-alt"></i> &nbsp;Edit
</a>
</li>
- {% else %}
+ {% elif current_page == "edit" %}
<li>
<a href="{{ url_for("wiki.page", page=page) }}">
<i class="fas fa-fw fa-arrow-left"></i> &nbsp;Back
</a>
</li>
{% endif %}
+
{% if current_page != "source" %}
<li>
<a href="{{ url_for("wiki.source", page=page) }}">