From dbb12bc8ff97eec35c27f92d29b9f45b46e9d8bf Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 14 Aug 2022 23:59:02 +0100 Subject: [PATCH] Fix passing registration status to modal --- .../irc/network/modals/registration.html | 20 +++++---- core/templatetags/urlsafe.py | 1 + core/views/manage/threshold/irc.py | 43 ++++++++++++++----- 3 files changed, 46 insertions(+), 18 deletions(-) diff --git a/core/templates/manage/threshold/irc/network/modals/registration.html b/core/templates/manage/threshold/irc/network/modals/registration.html index af3b99c..b6e845f 100644 --- a/core/templates/manage/threshold/irc/network/modals/registration.html +++ b/core/templates/manage/threshold/irc/network/modals/registration.html @@ -52,7 +52,7 @@ - {% if unreg %} + {% if unreg is not None %}
{% for network, items in unreg.items %}

{{ network }}

- {% for nick, num in items %} -
- -
- + {% if items is not False %} + {% for nick, num in items %} +
+ +
+ +
-
- {% endfor %} + {% endfor %} + {% else %} +

Error getting information for {{ network }}.

+ {% endif %} {% endfor %}