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}}
+
+
+ +
+
+ + + + + + {% for interface in interfaces %} + + {% endfor %} + +
Interfaces
{{interface.name}} ({{interface.address}}/{{interface.netmask}})
+
-
-
-
Project
{% html_link project.name 'project' project.id %}
-
Location
{{location.name}}
-
Incoming communications
-
Outgoing communications
-
iptables rules
{{ entity_iptables }}
{% html_link 'Download' 'entity_iptables' entity.id class="btn btn-primary input-small" %}
-
+ +
+
+
+ + + + + {% for comm in incoming_communications %} + + {% endfor %} +
Incoming communications
{{comm.source}} - {{comm.protocol}}: {{comm.port}}
+
+
+ +
+
+ + + + + {% for comm in outgoing_communications %} + + {% endfor %} + + +
Outgoing communications
{{comm.destination}} - {{comm.protocol}}: {{comm.port}}
+
+
+ +
+
+

Iptables rules

+
{{ entity_iptables }}
+
+
+ +
{% endif %} -{% endwith %} {% endblock %}