From 9442e92b31c6558e60854750252a4ba535b9c2fd Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 3 Aug 2022 07:20:30 +0100 Subject: [PATCH] Improve search forms --- core/lib/opensearch.py | 2 +- .../manage/threshold/irc/network/actions.html | 6 +- .../threshold/irc/overview/actions.html | 6 +- .../manage/threshold/irc/overview/alerts.html | 58 ++++++++++--------- core/templates/ui/drilldown/drilldown.html | 47 +++++++-------- core/templates/ui/drilldown/results.html | 27 ++++----- core/templates/ui/insights/info.html | 4 ++ core/templates/ui/insights/insights.html | 19 ++---- 8 files changed, 85 insertions(+), 84 deletions(-) diff --git a/core/lib/opensearch.py b/core/lib/opensearch.py index 26b88fd..657fd7e 100644 --- a/core/lib/opensearch.py +++ b/core/lib/opensearch.py @@ -123,7 +123,7 @@ def run_main_query(client, user, query, custom_query=False, index=None, size=Non search_query = construct_query(query, size) try: response = client.search(body=search_query, index=index) - except RequestError as err: + except RequestError: return False filter_blacklisted(user, response) return response diff --git a/core/templates/manage/threshold/irc/network/actions.html b/core/templates/manage/threshold/irc/network/actions.html index accd20e..9e63e5a 100644 --- a/core/templates/manage/threshold/irc/network/actions.html +++ b/core/templates/manage/threshold/irc/network/actions.html @@ -7,7 +7,7 @@ hx-trigger="click" hx-target="#actions" hx-swap="outerHTML" - class="button is-success"> + class="button is-primary"> @@ -21,7 +21,7 @@ hx-trigger="click" hx-target="#actions" hx-swap="outerHTML" - class="button is-success"> + class="button is-primary"> @@ -35,7 +35,7 @@ hx-trigger="click" hx-target="#actions" hx-swap="outerHTML" - class="button is-success"> + class="button is-primary"> diff --git a/core/templates/manage/threshold/irc/overview/actions.html b/core/templates/manage/threshold/irc/overview/actions.html index b71b875..9795750 100644 --- a/core/templates/manage/threshold/irc/overview/actions.html +++ b/core/templates/manage/threshold/irc/overview/actions.html @@ -6,7 +6,7 @@ hx-get="{% url 'threshold_irc_actions_add-network' %}" hx-trigger="click" hx-target="#modals-here-actions" - class="button is-success"> + class="button is-primary"> @@ -20,7 +20,7 @@ hx-trigger="click" hx-target="#actions" hx-swap="outerHTML" - class="button is-success"> + class="button is-primary"> @@ -30,7 +30,7 @@ - + + - -
- -
+
-
+ - - - -
-
+
+
+ + + +
-
-