Commit a995ad25 authored by Élie Bouttier's avatar Élie Bouttier

fix ping status on adherent UI

parent 709099f7
......@@ -25,7 +25,14 @@
IP allouée{{ service.active_allocations.count|pluralize }} :
{% for allocation in service.active_allocations.all %}
{% if forloop.first %}<ul>{% endif %}
<li>{{ allocation.resource }}{% if allocation.resource.last_time_up %} (dernière réponse au ping : {{ allocation.resource.last_time_up|naturaltime }}){% endif %}</li>
<li>
{{ allocation.resource }}
{% if allocation.resource.last_state.get_state_display == 'UP' %}
(UP)
{% elif allocation.resource.last_time_up %}
(dernière réponse au ping : {{ allocation.resource.last_time_up|naturaltime }})
{% endif %}
</li>
{% if forloop.last %}</ul>{% endif %}
{% empty %}
aucune IP allouée
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment