From 423d363f9f176048fca8d938d12c359ebe7dd4da Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:51:59 +0100 Subject: [PATCH] Reformat templates --- core/templates/base.html | 3 + core/templates/ui/drilldown/drilldown.html | 10 +- core/templates/ui/insights/insights.html | 12 +- core/templates/ui/insights/results.html | 142 +++++++++++---------- 4 files changed, 91 insertions(+), 76 deletions(-) diff --git a/core/templates/base.html b/core/templates/base.html index 5fda1ee..e1fb172 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -35,6 +35,9 @@ }); + diff --git a/core/templates/ui/drilldown/drilldown.html b/core/templates/ui/drilldown/drilldown.html index 167e870..692cab0 100644 --- a/core/templates/ui/drilldown/drilldown.html +++ b/core/templates/ui/drilldown/drilldown.html @@ -35,9 +35,6 @@ }); } -
{% csrf_token %} @@ -77,7 +74,12 @@
-
diff --git a/core/templates/ui/insights/insights.html b/core/templates/ui/insights/insights.html index 0c21c9b..014ef43 100644 --- a/core/templates/ui/insights/insights.html +++ b/core/templates/ui/insights/insights.html @@ -58,7 +58,12 @@
-
@@ -67,13 +72,14 @@
-
-

2

+
+

2

+
diff --git a/core/templates/ui/insights/results.html b/core/templates/ui/insights/results.html index 0a87e53..a0586d6 100644 --- a/core/templates/ui/insights/results.html +++ b/core/templates/ui/insights/results.html @@ -1,77 +1,81 @@ {% load static %} {% load index %} -
-
+ +
+
{% if item is not None %}
- - - - - - - - - - - - - - - - - - - - - - +
src - {% if item|index:'src' == 'irc' %} - - - - {% elif item|index:'src' == 'dis' %} - - - - {% endif %} -
nick - {% if item|index:'online' is True %} - - - - {{ item.nick }} - {% elif item|index:'online' is False %} - - - - {{ item|index:'nick' }} - {% else %} - - - - {{ item|index:'nick'}} - {% endif %} - {% if item|index:'num_chans' is not None %} - - {{ item|index:'num_chans' }} - - {% endif %} -
host{{ item.host }}
actions - {% if item.src == 'irc' %} - -
- {% endif %} -
net{{ item.net }}
+ + + + + + + + + + + + + + + + + + + + + +
src + {% if item|index:'src' == 'irc' %} + + + + IRC + {% elif item|index:'src' == 'dis' %} + + + + Discord + {% endif %} +
nick + {% if item|index:'online' is True %} + + + + {{ item.nick }} + {% elif item|index:'online' is False %} + + + + {{ item|index:'nick' }} + {% else %} + + + + {{ item|index:'nick'}} + {% endif %} + {% if item|index:'num_chans' is not None %} + + {{ item|index:'num_chans' }} + + {% endif %} +
host{{ item.host }}
actions + {% if item.src == 'irc' %} + +
+ {% endif %} +
net{{ item.net }}
{% endif %}