{% extends "conntrackt/base.html" %} {# For html_link. #} {% load conntrackt_tags %} {% block content %} {# Use a bit shorter variable names. #} {% with project=entity.project location=entity.location %} {% if entity %}

{{entity.name}}

{% if entity.description %}
{{entity.description}}

{% endif %}
{% html_link "Edit" "entity_update" entity.id class="btn btn-primary" %} {% html_link "Remove" "entity_delete" entity.id class="btn btn-primary" %}

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" %}
{% endif %} {% endwith %} {% endblock %}