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 @@ -4,30 +4,64 @@ {% load conntrackt_tags %} {% block content %} +

Welcome to Conntrackt

+
Below you may find the list of projects that are available to you. Clicking on the project will take you to the summary page for that particular project. Clicking on an entity inside of a project will take you to the summary page of an entity.
+
+
{% html_link "Add project" "project_create" class="btn btn-primary" %}
+
+
-{% if projects %} - {% for project in projects %} -
-
{% include "conntrackt/project_widget.html" %}
+ +
+

Projects

+
+ {% if projects %} + + {% for project in projects %} + + + + + + + {% endfor %} +
{% 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" %}
+ {% else %} + There are no projects defined. + {% endif %} +
- {% endfor %} -{% else %} -
Currently there are no projects defined in the database. Use the administration pages in order to add a new project.
-{% endif %} + +
+

Locations

+
+ {% if locations %} + + {% for location in locations %} + + + + {% endfor %} +
{{location.name}}
+ {% else %} + There are no locations defined. + {% endif %} +
+
+
{% endblock %} -