mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 20:03:11 +00:00
un peu de couleurs sur l'affichage des switchs
This commit is contained in:
parent
cd0e11815c
commit
eb1567a9b7
1 changed files with 24 additions and 18 deletions
|
@ -38,14 +38,17 @@ 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" %}
|
||||||
<td class="p-3 mb-2 bg-success text-dark">
|
|
||||||
{% if port.room %}
|
{% if port.room %}
|
||||||
|
<td class="p-3 mb-2 bg-success text-dark">
|
||||||
{{ 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%}
|
||||||
|
<td class="p-3 mb-2 bg-danger text-dark">
|
||||||
<a href="{% url 'topologie:index-port' switchid=port.related.switch.id %}">{{ port.related }}</a>
|
<a href="{% url 'topologie:index-port' switchid=port.related.switch.id %}">{{ port.related }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<td class="p-3 mb-2 bg-info text-dark">
|
||||||
Vide
|
Vide
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
@ -63,14 +66,17 @@ 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" %}
|
||||||
<td class="p-3 mb-2 bg-success text-dark">
|
|
||||||
{% if port.room %}
|
{% if port.room %}
|
||||||
|
<td class="p-3 mb-2 bg-success text-dark">
|
||||||
{{ 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%}
|
||||||
|
<td class="p-3 mb-2 bg-danger text-dark">
|
||||||
<a href="{% url 'topologie:index-port' switchid=port.related.switch.id %}">{{ port.related }}</a>
|
<a href="{% url 'topologie:index-port' switchid=port.related.switch.id %}">{{ port.related }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<td class="p-3 mb-2 bg-info text-dark">
|
||||||
Vide
|
Vide
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue