From 41f9f179a645e4fc551beec0cd71e6ac79ddfc2e Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sat, 2 Jun 2018 13:47:58 +0100 Subject: [Wiki] UX improvements for sidebar --- templates/wiki/base.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/wiki/base.html b/templates/wiki/base.html index 537a844b..cbf89356 100644 --- a/templates/wiki/base.html +++ b/templates/wiki/base.html @@ -33,7 +33,7 @@
    - {% if data is defined %} + {% if data is defined and page == "wiki.page" %} {% if "headers" in data and data.headers %}
  • Contents
  • {% for header in data.headers %} @@ -57,6 +57,8 @@
  • {% endif %} {% endif %} +
  • Pages
  • +
  •  Home
  • @@ -75,11 +77,13 @@ "wiki.history.compare", "wiki.source", "wiki.delete", "wiki.move" ] %} - {% set actionable = current_page in ACTIONABLE_PAGES %} + {% set actionable = can_edit and current_page in ACTIONABLE_PAGES %} {% if actionable %}
  • +
  • Actions
  • + {% if current_page == "wiki.edit" %}
  • @@ -158,6 +162,7 @@ {% endif %}
  • +
  • Information
  •  Special Pages -- cgit v1.2.3