diff options
author | 2018-04-12 11:59:39 +0100 | |
---|---|---|
committer | 2018-04-12 11:59:39 +0100 | |
commit | e6e4f17f031f135873a64c7cae39e0a427fd48d0 (patch) | |
tree | 92aa78fc841a1568f8fe8cc34613596a12628df8 /templates/wiki | |
parent | Add page source view to wiki (diff) |
[Wiki] Fix sidebar edit link
Diffstat (limited to 'templates/wiki')
-rw-r--r-- | templates/wiki/base.html | 3 |
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> 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> Back </a> </li> {% endif %} + {% if current_page != "source" %} <li> <a href="{{ url_for("wiki.source", page=page) }}"> |