diff --git a/conntrackt/templates/conntrackt/entity_detail.html b/conntrackt/templates/conntrackt/entity_detail.html
--- a/conntrackt/templates/conntrackt/entity_detail.html
+++ b/conntrackt/templates/conntrackt/entity_detail.html
@@ -4,8 +4,6 @@
{% load conntrackt_tags %}
{% block content %}
-{# Use a bit shorter variable names. #}
-{% with project=entity.project location=entity.location %}
{% if entity %}
@@ -20,27 +18,88 @@
{% endif %}
+
{% html_link "Edit" "entity_update" entity.id class="btn btn-primary" %}
{% html_link "Remove" "entity_delete" entity.id class="btn btn-primary" %}
+ {% html_link "Get Iptables" 'entity_iptables' entity.id class="btn btn-primary" %}
+
+
+
+
+
+
+
+
+
+
+
+ General information |
+
+
+ Project | {% html_link project.name 'project' project.id %} |
+
+
+ Location | {{location}} |
+
+
+
+
+
+
+
+
+
+ Interfaces |
+
+
+ {% for interface in interfaces %}
+ {{interface.name}} ({{interface.address}}/{{interface.netmask}}) |
+ {% endfor %}
+
+
+
-
-
- - Project
- {% html_link project.name 'project' project.id %}
- - Location
- {{location.name}}
- - Incoming communications
{% for interface in entity.interface_set.all %}
- {% for communication in interface.destination_set.all %}
- - {{communication.source}} - {{communication.protocol}}: {{communication.port}}
- {% endfor %}{% endfor %}
- - Outgoing communications
{% for interface in entity.interface_set.all %}
- {% for communication in interface.source_set.all %}
- - {{communication.destination}} - {{communication.protocol}}: {{communication.port}}
-{% endfor %}{% endfor %}
- - iptables rules
{{ entity_iptables }}
{% html_link 'Download' 'entity_iptables' entity.id class="btn btn-primary input-small" %}
-
+
+
+
+
+
+
+ Incoming communications |
+
+ {% for comm in incoming_communications %}
+ {{comm.source}} - {{comm.protocol}}: {{comm.port}} |
+ {% endfor %}
+
+
+
+
+
+
+
+
+ Outgoing communications |
+
+ {% for comm in outgoing_communications %}
+ {{comm.destination}} - {{comm.protocol}}: {{comm.port}} |
+ {% endfor %}
+
+
+
+
+
+
+
+
+
Iptables rules
+
{{ entity_iptables }}
+
+
+
+
{% endif %}
-{% endwith %}
{% endblock %}