# HG changeset patch # User Branko Majic # Date 2013-03-16 23:33:25 # Node ID df07ff9dfd8503ada24f4f98e2152e07a713dba3 # Parent 2ce3da675de6f18d1061fab2cea148db3d5c96e5 Changed the project widget to have a bit more style consistency. Removed link for location. 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 @@ -11,7 +11,7 @@

{{entity.name}}

Project
{% html_link project.name 'project' project.id %}
-
Location
{% html_link location.name 'location' location.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}}
  • diff --git a/conntrackt/templates/conntrackt/project_widget.html b/conntrackt/templates/conntrackt/project_widget.html --- a/conntrackt/templates/conntrackt/project_widget.html +++ b/conntrackt/templates/conntrackt/project_widget.html @@ -1,6 +1,6 @@ {% load conntrackt %} - + {% for entity in project.entity_set.all %} {% endfor %}
    {% html_link project.name 'project' project.id class="btn btn-link" title=project.description %}{% html_link '' 'project_iptables' project.id class="btn btn-link" %}
    {% html_link project.name 'project' project.id title=project.description %}{% html_link '' 'project_iptables' project.id class="btn btn-link" %}
    {% html_link entity.name 'entity' entity.id class="btn btn-link" %}{% html_link '' 'entity_iptables' entity.id class="btn btn-link" %}