From 29acedfc4b450165f60f469ef804d6b73588c287 Mon Sep 17 00:00:00 2001 From: ReturnFI <151555003+ReturnFI@users.noreply.github.com> Date: Fri, 21 Nov 2025 17:34:48 +0000 Subject: [PATCH] feat(frontend): Conditionally render URI cards on sub page --- core/scripts/normalsub/template/index.html | 40 +++++++++------------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/core/scripts/normalsub/template/index.html b/core/scripts/normalsub/template/index.html index ab171fe..74c2665 100644 --- a/core/scripts/normalsub/template/index.html +++ b/core/scripts/normalsub/template/index.html @@ -107,37 +107,31 @@ -
+ {% if local_uris and not blocked %} +

Manual Connection URIs

- {% if blocked %} -
- -

Connections Disabled

-

{{ usage_raw }}

+
+ {% for item in local_uris %} +
+

{{ item.label }}

+ {% if item.qrcode %} + {{ item.label }} QR Code + + {% else %} +

URI not available

+ {% endif %}
- {% else %} -
- {% for item in local_uris %} -
-

{{ item.label }}

- {% if item.qrcode %} - {{ item.label }} QR Code - - {% else %} -

URI not available

- {% endif %} -
- {% endfor %} -
- {% endif %} + {% endfor %} +
+ {% endif %} {% if node_uris and not blocked %}