{% extends 'arnold/base.html' %} {% block content %} {% include 'arnold/back.html' %} {% if error %}
{{ error }}
{% endif %} {% comment %} Display info for this identity {% endcomment %}
Details for {{ identity.ip }}
Ip {{ identity.ip }}
Dns {{ identity.dns }}
Netbios {{ identity.netbios }}
Mac {{ identity.mac }}
Switch {% if identity.interface %} {{ identity.interface.netbox.sysname }} {% else %} Last interface was {{ identity.textual_interface }} {% endif %}
Port {% if identity.interface %} {% endif %} {{ identity.interface.ifname|default_if_none:'' }} {% if identity.interface %} {% endif %}
Vlan {{ identity.interface.vlan|default_if_none:'' }}
Status {{ identity.status }} {% if identity.status != 'enabled' %} {% if identity.interface %} Enable {% else %} Close detention {% endif %} {% endif %}
Autoenable {{ identity.autoenable|date:'DATETIME_FORMAT'|default_if_none:'' }}
Mail {{ identity.mail }}
{% comment %}Display list of events regarding this identity{% endcomment %} {% with identity.event_set.all as events %} {% for event in events %} {% endfor %}
History
Eventtime Action Reason Comment User
{{ event.event_time|date:"Y-m-d H:i:s" }} {{ event.action }} {{ event.justification }} {{ event.comment }} {{ event.executor }}
{{ events|length }} entr{{ events|pluralize:'y,ies' }} in history
{% endwith %} {% endblock %}