diff --git a/conntrackt/templates/conntrackt/index.html b/conntrackt/templates/conntrackt/index.html
--- a/conntrackt/templates/conntrackt/index.html
+++ b/conntrackt/templates/conntrackt/index.html
@@ -18,6 +18,7 @@
{% html_link "Add project" "project_create" class="btn btn-primary" %}
+ {% html_link "Add location" "location_create" class="btn btn-primary" %}
@@ -28,20 +29,20 @@
Projects
- {% if projects %}
-
- {% for project in projects %}
-
- {% html_link project.name "project" project.id class="btn btn-link" %} |
- {% html_link '' "project_iptables" project.id class="btn btn-link" %} |
- {% html_link '' "project_update" project.id class="btn btn-link" %} |
- {% html_link '' "project_delete" project.id class="btn btn-link" %} |
-
- {% endfor %}
-
- {% else %}
+ {% if projects %}
+
+ {% for project in projects %}
+
+ {% html_link project.name "project" project.id class="btn btn-link" %} |
+ {% html_link '' "project_iptables" project.id class="btn btn-link" %} |
+ {% html_link '' "project_update" project.id class="btn btn-link" %} |
+ {% html_link '' "project_delete" project.id class="btn btn-link" %} |
+
+ {% endfor %}
+
+ {% else %}
There are no projects defined.
- {% endif %}
+ {% endif %}
@@ -53,6 +54,8 @@
{% for location in locations %}
{{location.name}} |
+ {% html_link '' "location_update" location.id class="btn btn-link" %} |
+ {% html_link '' "location_delete" location.id class="btn btn-link" %} |
{% endfor %}