From 9d125de99990be994f4bf38a2b2bc798562c075b Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 18 Aug 2022 07:20:30 +0100 Subject: [PATCH] Make relays table more compact with two rows per entry --- core/templates/base.html | 3 + .../manage/threshold/irc/network/relays.html | 167 +++++++++++------- 2 files changed, 105 insertions(+), 65 deletions(-) diff --git a/core/templates/base.html b/core/templates/base.html index e953ae4..1c6841c 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -90,6 +90,9 @@ height: 20em; overflow: auto; } + table.relays-table tr:nth-of-type(2n) td { + border-bottom: 3px solid grey; + } /* @media screen and (min-width: 500px) { .datetimepicker-wrapper { diff --git a/core/templates/manage/threshold/irc/network/relays.html b/core/templates/manage/threshold/irc/network/relays.html index 84d3d88..db906eb 100644 --- a/core/templates/manage/threshold/irc/network/relays.html +++ b/core/templates/manage/threshold/irc/network/relays.html @@ -4,7 +4,7 @@ {% if relays is not None %}
- +
@@ -100,69 +100,106 @@ {{ relay.nick }} + + + + + + {# actions-top #} + + + {# id #} + {# reg #} + {# auth #} + {# conn #} + {# on #} + + + + {# actions-bottom #} {% endfor %}
id @@ -40,7 +40,7 @@ nick - +
-
-
- {% if relay.enabled %} - - - - - - {% else %} - - - - - - {% endif %} - - - - - -
-
- - -
+ + + + + + + + + + + + + + + + + + + {% if relay.enabled %} + + + + + + {% else %} + + + + + + {% endif %} + + + + + + +