From 850d00de196846565d202bdbe3cd57891c5d05f3 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 26 Aug 2022 22:04:30 +0100 Subject: [PATCH] Implement relay scroll restore --- .../manage/threshold/irc/network/network.html | 37 +- .../manage/threshold/irc/network/relays.html | 423 +++++++++--------- 2 files changed, 246 insertions(+), 214 deletions(-) diff --git a/core/templates/manage/threshold/irc/network/network.html b/core/templates/manage/threshold/irc/network/network.html index 6882c27..146849b 100644 --- a/core/templates/manage/threshold/irc/network/network.html +++ b/core/templates/manage/threshold/irc/network/network.html @@ -1,6 +1,28 @@ {% extends "base.html" %} {% block content %} +
+ {# hx-swap="innerHTML" #} + >
-
+ +
+
+
+
+
+
+
+
+
diff --git a/core/templates/manage/threshold/irc/network/relays.html b/core/templates/manage/threshold/irc/network/relays.html index bc441a5..49a4d6e 100644 --- a/core/templates/manage/threshold/irc/network/relays.html +++ b/core/templates/manage/threshold/irc/network/relays.html @@ -1,222 +1,221 @@ {% load index %} -
- {% if relays is not None %} -
-
- - - - + + + + + + + + + + + + + + + + {% endfor %} + +
id - - + +
+ + + + + + + + + + + + + + {% for relay in relays %} + + + - - - - - {% for relay in relays %} - - - - - - - - - - - - - - - - - - - - - - - {% endfor %} - -
id + + + + + + + + + + + + + + + + + + + + + + + + nick + + + +
{{ relay.id }} + {% if relay.registered %} + + - - - - + {% else %} + + - - - + {% endif %} + + + {% if relay.authed %} + + - - - - + {% else %} + + - - - + {% endif %} + + + {% if relay.conn %} + + - - - - + {% else %} + + - nick - - + {% endif %} + + + {% if relay.enabled %} + + - - -
{{ relay.id }} - {% if relay.registered %} - - - - {% else %} - - - - {% endif %} - - {% if relay.authed %} - - - - {% else %} - - - - {% endif %} - - {% if relay.conn %} - - - - {% else %} - - - - {% endif %} - - {% if relay.enabled %} - - - - {% else %} - - - - {% endif %} - - {{ relay.chans }} - {{ relay.limit }} - {{ relay.nick }} - - - - - - -
- - - - - - - - - - - - - - - - - - - {% if relay.enabled %} - - - - - - {% else %} - - - - - - {% endif %} - - - - - - -
-
- - {% endif %} + {% else %} + + + + {% endif %} + +
+ {{ relay.chans }} + {{ relay.limit }} + {{ relay.nick }} + + + + + + +
+ + + + + + + + + + + + + + + + + + + {% if relay.enabled %} + + + + + + {% else %} + + + + + + {% endif %} + + + + + + +
+ {% include 'manage/threshold/partials/notify.html' %}
\ No newline at end of file