From 7e36cbc7ba979fc18860b68b8fabcdf56fa6f277 Mon Sep 17 00:00:00 2001 From: edpibu Date: Wed, 26 Sep 2018 14:19:59 +0200 Subject: [PATCH] Added switch name to port search results, moved link to switch on switch name rather than port number --- topologie/templates/topologie/aff_port.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/topologie/templates/topologie/aff_port.html b/topologie/templates/topologie/aff_port.html index d6f18316..b781cc96 100644 --- a/topologie/templates/topologie/aff_port.html +++ b/topologie/templates/topologie/aff_port.html @@ -32,6 +32,9 @@ with this program; if not, write to the Free Software Foundation, Inc., {% trans "Port" as tr_port %} {% include "buttons/sort.html" with prefix='port' col='port' text=tr_port %} + {% if search %} + {% trans "Switch" %} + {% endif %} {% trans "Room" as tr_room %} {% include "buttons/sort.html" with prefix='port' col='room' text=tr_room %} {% trans "Interface" as tr_interface %} @@ -46,11 +49,12 @@ with this program; if not, write to the Free Software Foundation, Inc., {% for port in port_list %} - {% if search %} - {{ port.port }} - {% else %} {{ port.port }} - {% endif %} + {% if search %} + + {{ port.switch }} + + {% endif %} {% if port.room %} {{ port.room }}