|
@@ -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
|