From 7e78c2857efdb51a98eafd3a1b3159e2977109e2 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 8 Feb 2023 17:46:43 +0000 Subject: [PATCH] Hide index field for rule searches --- core/templates/window-content/search.html | 84 ++++++++++++----------- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/core/templates/window-content/search.html b/core/templates/window-content/search.html index 5ad2f36..4b0d2fc 100644 --- a/core/templates/window-content/search.html +++ b/core/templates/window-content/search.html @@ -341,53 +341,57 @@ -
-
-
- - + {% if params.index == 'main' %} + + {% elif params.index == None %} + + {% else %} + + {% endif %} - {% if params.index == 'meta' %} - - {% else %} - - {% endif %} + {% if params.index == 'internal' %} + + {% else %} + + {% endif %} - {% if params.index == 'restricted' %} - - {% else %} - - {% endif %} + {% if params.index == 'meta' %} + + {% else %} + + {% endif %} - - - + {% if params.index == 'restricted' %} + + {% else %} + + {% endif %} + + + + + - +
+

+ + index + +

-

- - index - -

+ {% if not user.is_superuser %} + No access + {% endif %}
- {% if not user.is_superuser %} - No access - {% endif %} - + {% endif %} +