From 9f808c43ee0559e390a8034ef4bc1e96a6da7b59 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:52:17 +0100 Subject: [PATCH] Put all Insights elements into boxes --- core/templates/ui/insights/channels.html | 35 ++-- core/templates/ui/insights/info.html | 207 +++++++++++------------ core/templates/ui/insights/insights.html | 4 + core/templates/ui/insights/meta.html | 29 ++-- core/templates/ui/insights/nicks.html | 31 ++-- 5 files changed, 140 insertions(+), 166 deletions(-) diff --git a/core/templates/ui/insights/channels.html b/core/templates/ui/insights/channels.html index 1509ed5..eee24a1 100644 --- a/core/templates/ui/insights/channels.html +++ b/core/templates/ui/insights/channels.html @@ -1,23 +1,16 @@
-
-

- Channels -

- {% for chan in chans %} - - - - - - {{ chan }} - - - {% endfor %} -
+ {% for chan in chans %} + + + + + {{ chan }} + + {% endfor %}
\ No newline at end of file diff --git a/core/templates/ui/insights/info.html b/core/templates/ui/insights/info.html index 366523e..207a8a4 100644 --- a/core/templates/ui/insights/info.html +++ b/core/templates/ui/insights/info.html @@ -1,112 +1,105 @@ {% load static %} {% load index %} +
+
+
+
+
+
-
-

- Information -

-
- {% if item is not None %} -
- - - - - - - - - - - - - - - - - - - - - - - -
src - {% if item.src == 'irc' %} - - - - IRC - {% elif item.src == 'dis' %} - - - - Discord - {% endif %} -
nick - {% if item.online is True %} - - - - {{ item.nick }} - {% elif item.online is False %} - - - - {{ item.nick }} - {% else %} - - - - {{ item.nick }} - {% endif %} - {% if item.num_chans is not None %} - - {{ item.num_chans }} - - {% endif %} -
host{{ item.host }}
actions - {% if item.src == 'irc' %} - - {% endif %} -
net{{ item.net }}
-
- {% endif %} + {% if item is not None %} +
+ + + + + + + + + + + + + + + + + + + + + + + +
src + {% if item.src == 'irc' %} + + + + IRC + {% elif item.src == 'dis' %} + + + + Discord + {% endif %} +
nick + {% if item.online is True %} + + + + {{ item.nick }} + {% elif item.online is False %} + + + + {{ item.nick }} + {% else %} + + + + {{ item.nick }} + {% endif %} + {% if item.num_chans is not None %} + + {{ item.num_chans }} + + {% endif %} +
host{{ item.host }}
actions + {% if item.src == 'irc' %} + + {% endif %} +
net{{ item.net }}
-
-
-
-
-
-
-
+ {% endif %}
\ No newline at end of file diff --git a/core/templates/ui/insights/insights.html b/core/templates/ui/insights/insights.html index b6b3140..fea6c1e 100644 --- a/core/templates/ui/insights/insights.html +++ b/core/templates/ui/insights/insights.html @@ -75,6 +75,7 @@
+
Nicks
@@ -82,12 +83,14 @@
+
Info
+
Meta
@@ -95,6 +98,7 @@
+
Channels
diff --git a/core/templates/ui/insights/meta.html b/core/templates/ui/insights/meta.html index 9f7d407..1e34fdf 100644 --- a/core/templates/ui/insights/meta.html +++ b/core/templates/ui/insights/meta.html @@ -1,21 +1,12 @@
-
-

- Meta -

- - - - - - bbb - - -
+ + + bbb +
\ No newline at end of file diff --git a/core/templates/ui/insights/nicks.html b/core/templates/ui/insights/nicks.html index 8486f66..f174669 100644 --- a/core/templates/ui/insights/nicks.html +++ b/core/templates/ui/insights/nicks.html @@ -1,21 +1,14 @@
-
-

- Nicks -

- - - - - - aaa - - -
+ + + + + aaa +
\ No newline at end of file