From b95aaf8ff20fd3d72828c8db2ee1b0825bd992cb Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 3 Aug 2022 07:20:30 +0100 Subject: [PATCH] Implement tags --- core/templates/base.html | 4 + core/templates/ui/drilldown/drilldown.html | 101 +++++++++++++++++---- core/templates/ui/drilldown/results.html | 12 +-- 3 files changed, 91 insertions(+), 26 deletions(-) diff --git a/core/templates/base.html b/core/templates/base.html index f8cd44f..8808457 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -14,11 +14,13 @@ + +
-
@@ -218,6 +251,34 @@ +
+ + +
diff --git a/core/templates/ui/drilldown/results.html b/core/templates/ui/drilldown/results.html index 74b1813..3c4c103 100644 --- a/core/templates/ui/drilldown/results.html +++ b/core/templates/ui/drilldown/results.html @@ -65,7 +65,7 @@ {% endif %} + onclick="toggleTag('src', '{{ item.src|escapejs }}')"> {% if item.src == 'irc' %} @@ -79,7 +79,7 @@ + onclick="toggleTag('type', '{{ item.type|escapejs }}')"> {% if item.type == 'msg' %} @@ -124,7 +124,7 @@ {{ item.msg }} + onclick="toggleTag('host', '{{ item.host|escapejs }}')"> {{ item.host }} @@ -145,7 +145,7 @@ {% endif %}
- + {{ item.nick }} {% if item.num_chans is not None %} @@ -173,7 +173,7 @@
+ onclick="toggleTag('channel', '{{ item.channel|escapejs }}')"> {{ item.channel }} {% if item.num_users is not None %} @@ -187,7 +187,7 @@ + onclick="toggleTag('net', '{{ item.net|escapejs }}')"> {{ item.net }}