From 84cfd165b4d3e34d15b024b9cbcc651b66aa8d8e Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Sun, 12 Mar 2023 10:27:04 -0400 Subject: [PATCH] Re-arranged side navigation to include the "Global Search" feature regardless of user role as the global search feature is now accessible to all users. Also moved the "Activity" feature link higher in the menu to remove duplicate code from the navigation code base. --- powerdnsadmin/templates/base.html | 34 +++++++++++++------------------ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/powerdnsadmin/templates/base.html b/powerdnsadmin/templates/base.html index 5a47bd2..408f4be 100644 --- a/powerdnsadmin/templates/base.html +++ b/powerdnsadmin/templates/base.html @@ -101,14 +101,22 @@ {% endif %} - {% if current_user.role.name in ['Administrator', 'Operator'] %} - -
  • - - -

    Global Search

    +
  • +
  • + + +

    Global Search

    +
    +
  • + {% if current_user.role.name in ['Administrator', 'Operator'] or SETTING.get('allow_user_view_history') %} +
  • + + +

    Activity

  • + {% endif %} + {% if current_user.role.name in ['Administrator', 'Operator'] %}
  • @@ -121,12 +129,6 @@

    Server Configuration

  • -
  • - - -

    Activity

    -
    -
  • @@ -189,14 +191,6 @@ {% endif %}
  • - {% elif SETTING.get('allow_user_view_history') %} - -
  • - - -

    History

    -
    -
  • {% endif %} {% endif %}