From 2788fa31d2736cbd0f8147901c95ce9ef7680740 Mon Sep 17 00:00:00 2001 From: Joseph Date: Wed, 18 Apr 2018 00:00:50 +0100 Subject: Fix sidebar routes --- templates/wiki/base.html | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'templates/wiki') 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 @@ {% endif %} - {% if current_page != "source" %} + {% if current_page != "history.show" %} + {% if current_page == "history.compare" %} +
  • + +  Back + +
  • + {% else %} +
  • + +  Revisions + +
  • + {% endif %} + {% else %}
  • - -  Source + +  Back
  • + {% endif %} + + + {% if current_page != "source" %}
  • - -  Revisions + +  Source
  • {% else %} -- cgit v1.2.3