|
|
@ -38,16 +38,19 @@ with this program; if not, write to the Free Software Foundation, Inc., |
|
|
<tr> |
|
|
<tr> |
|
|
|
|
|
|
|
|
{% for port in port_list|slice:"::2" %} |
|
|
{% for port in port_list|slice:"::2" %} |
|
|
|
|
|
{% if port.room %} |
|
|
<td class="p-3 mb-2 bg-success text-dark"> |
|
|
<td class="p-3 mb-2 bg-success text-dark"> |
|
|
{% if port.room %} |
|
|
{{ port.room }} |
|
|
{{ port.room }} |
|
|
{% elif port.machine_interface %} |
|
|
{% elif port.machine_interface %} |
|
|
<td class="p-3 mb-2 bg-warning text-dark"> |
|
|
<a href="{% url 'users:profil' userid=port.machine_interface.machine.user.id %}">{{ port.machine_interface }}</a> |
|
|
<a href="{% url 'users:profil' userid=port.machine_interface.machine.user.id %}">{{ port.machine_interface }}</a> |
|
|
{% elif port.related%} |
|
|
{% elif port.related%} |
|
|
<a href="{% url 'topologie:index-port' switchid=port.related.switch.id %}">{{ port.related }}</a> |
|
|
<td class="p-3 mb-2 bg-danger text-dark"> |
|
|
{% else %} |
|
|
<a href="{% url 'topologie:index-port' switchid=port.related.switch.id %}">{{ port.related }}</a> |
|
|
Vide |
|
|
{% else %} |
|
|
{% endif %} |
|
|
<td class="p-3 mb-2 bg-info text-dark"> |
|
|
|
|
|
Vide |
|
|
|
|
|
{% endif %} |
|
|
</td> |
|
|
</td> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
@ -63,16 +66,19 @@ with this program; if not, write to the Free Software Foundation, Inc., |
|
|
<tr> |
|
|
<tr> |
|
|
|
|
|
|
|
|
{% for port in port_list|slice:"1::2" %} |
|
|
{% for port in port_list|slice:"1::2" %} |
|
|
|
|
|
{% if port.room %} |
|
|
<td class="p-3 mb-2 bg-success text-dark"> |
|
|
<td class="p-3 mb-2 bg-success text-dark"> |
|
|
{% if port.room %} |
|
|
{{ port.room }} |
|
|
{{ port.room }} |
|
|
{% elif port.machine_interface %} |
|
|
{% elif port.machine_interface %} |
|
|
<td class="p-3 mb-2 bg-warning text-dark"> |
|
|
<a href="{% url 'users:profil' userid=port.machine_interface.machine.user.id %}">{{ port.machine_interface }}</a> |
|
|
<a href="{% url 'users:profil' userid=port.machine_interface.machine.user.id %}">{{ port.machine_interface }}</a> |
|
|
{% elif port.related%} |
|
|
{% elif port.related%} |
|
|
<a href="{% url 'topologie:index-port' switchid=port.related.switch.id %}">{{ port.related }}</a> |
|
|
<td class="p-3 mb-2 bg-danger text-dark"> |
|
|
{% else %} |
|
|
<a href="{% url 'topologie:index-port' switchid=port.related.switch.id %}">{{ port.related }}</a> |
|
|
Vide |
|
|
{% else %} |
|
|
{% endif %} |
|
|
<td class="p-3 mb-2 bg-info text-dark"> |
|
|
|
|
|
Vide |
|
|
|
|
|
{% endif %} |
|
|
</td> |
|
|
</td> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|