{% extends 'generic/object.html' %} {% load buttons %} {% load static %} {% load helpers %} {% load plugins %} {% block content %}
IpAddress | {{ object.ipaddress }} | ||
---|---|---|---|
Software Product | {{ object.software_product }} | ||
Version | {{ object.version }} | ||
Owner | {% if object.ipaddress.contacts.count >= 1 and object.owner.strip != "" %}{{ object.owner }}, {% for contact in object.ipaddress.contacts.all %} {{ contact.contact }}{% if not forloop.last %}, {% endif %} {% endfor %} | {% elif object.ipaddress.contacts.count >= 1 and object.owner.strip == "" %}{% for contact in object.ipaddress.contacts.all %} {{ contact.contact }}{% if not forloop.last %}, {% endif %} {% endfor %} | {% else %}{{ object.owner }} | {% endif %}