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 @@ -1,24 +1,28 @@ {% extends "conntrackt/template.html" %} +{# For html_link. #} {% load conntrackt %} {% block content %} +{# Use a bit shorter variable names. #} {% with project=entity.project location=entity.location %} + {% if entity %}

{{entity.name}}

-
Project
{% html_link project.name 'project' project.id %}
-
Location
{% html_link location.name 'location' location.id %}
-
Incoming communications
{% endif %} {% endwith %} -{% endblock %} \ No newline at end of file +{% endblock %} +