From eb1567a9b74f0e185e5837388e57d2ab587e38ed Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 11 Apr 2018 23:36:56 +0200 Subject: [PATCH] un peu de couleurs sur l'affichage des switchs --- topologie/templates/topologie/aff_port.html | 42 ++++++++++++--------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/topologie/templates/topologie/aff_port.html b/topologie/templates/topologie/aff_port.html index 8a1268a3..837c2b53 100644 --- a/topologie/templates/topologie/aff_port.html +++ b/topologie/templates/topologie/aff_port.html @@ -38,16 +38,19 @@ with this program; if not, write to the Free Software Foundation, Inc., {% for port in port_list|slice:"::2" %} + {% if port.room %} - {% if port.room %} - {{ port.room }} - {% elif port.machine_interface %} - {{ port.machine_interface }} - {% elif port.related%} - {{ port.related }} - {% else %} - Vide - {% endif %} + {{ port.room }} + {% elif port.machine_interface %} + + {{ port.machine_interface }} + {% elif port.related%} + + {{ port.related }} + {% else %} + + Vide + {% endif %} {% endfor %} @@ -63,16 +66,19 @@ with this program; if not, write to the Free Software Foundation, Inc., {% for port in port_list|slice:"1::2" %} + {% if port.room %} - {% if port.room %} - {{ port.room }} - {% elif port.machine_interface %} - {{ port.machine_interface }} - {% elif port.related%} - {{ port.related }} - {% else %} - Vide - {% endif %} + {{ port.room }} + {% elif port.machine_interface %} + + {{ port.machine_interface }} + {% elif port.related%} + + {{ port.related }} + {% else %} + + Vide + {% endif %} {% endfor %}