From 1e75df8c33bf581a193e3dd24c4ecd24d61fb8c9 Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Wed, 23 Apr 2025 09:57:49 +0530 Subject: [PATCH] Try to make these weird templates safer I think we need to check these snippets rather carefully somepoint not too far Signed-off-by: Pratyush Desai --- .../webpanel/port_mapping_widget.html | 126 +++++------------- 1 file changed, 35 insertions(+), 91 deletions(-) diff --git a/webpanel/templates/webpanel/port_mapping_widget.html b/webpanel/templates/webpanel/port_mapping_widget.html index 164c366..9e2f895 100644 --- a/webpanel/templates/webpanel/port_mapping_widget.html +++ b/webpanel/templates/webpanel/port_mapping_widget.html @@ -1,38 +1,40 @@ - - -
- {% if widget.value %} - {% for k, v in widget.value.items %} -
- - - -
- {% endfor %} - {% else %} -
- - - -
- {% endif %} - -
- -
- - - - \ No newline at end of file + \ No newline at end of file