diff options
author | 2018-04-18 00:00:50 +0100 | |
---|---|---|
committer | 2018-04-18 00:00:50 +0100 | |
commit | 2788fa31d2736cbd0f8147901c95ce9ef7680740 (patch) | |
tree | 2c28f57fe88a16c645944e88e0e380044e18a70b /templates/wiki | |
parent | Fix JS again (diff) |
Fix sidebar routes
Diffstat (limited to 'templates/wiki')
-rw-r--r-- | templates/wiki/base.html | 28 |
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> Back + </a> + </li> + {% else %} + <li> + <a href="{{ url_for("wiki.history.show", page=page) }}"> + <i class="uk-icon fas fa-fw fa-history"></i> Revisions + </a> + </li> + {% endif %} + {% else %} <li> - <a href="{{ url_for("wiki.source", page=page) }}"> - <i class="uk-icon fas fa-fw fa-code"></i> Source + <a href="{{ url_for("wiki.page", page=page) }}"> + <i class="uk-icon fas fa-fw fa-arrow-left"></i> 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> Revisions + <a href="{{ url_for("wiki.source", page=page) }}"> + <i class="uk-icon fas fa-fw fa-code"></i> Source </a> </li> {% else %} |