Files
@ 26c0c45a8480
Branch filter:
Location: conntrackt/conntrackt/templates/conntrackt/index.html - annotation
26c0c45a8480
1.8 KiB
text/html
CONNT-7: Modified the index view to show listing of projects and entities in two columns. Updated the index test accordingly.
0e5abbd2d3d6 b38bff5ff039 2ce3da675de6 90fac7c6abb9 3c652f6dc038 b38bff5ff039 26c0c45a8480 30e997a9d6c9 e7f270f1c28d 30e997a9d6c9 26c0c45a8480 30e997a9d6c9 e7f270f1c28d e7f270f1c28d 26c0c45a8480 e7f270f1c28d 26c0c45a8480 e7f270f1c28d e7f270f1c28d 509ed963b5e1 e7f270f1c28d 30e997a9d6c9 26c0c45a8480 02c5e6c3ba98 26c0c45a8480 2ce3da675de6 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 02c5e6c3ba98 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 26c0c45a8480 02c5e6c3ba98 02c5e6c3ba98 b38bff5ff039 | {% extends "conntrackt/base.html" %}
{# For html_link #}
{% load conntrackt_tags %}
{% block content %}
<div class="row">
<h1 class="span12">Welcome to Conntrackt</h1>
</div>
<div class="row">
<div class="span12">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.</div>
</div>
<hr>
<div class="row">
<div class="span12">
{% html_link "Add project" "project_create" class="btn btn-primary" %}
</div>
</div>
<hr>
<div class="row">
<div class="span6">
<h2>Projects</h2>
<div class="well">
{% if projects %}
<table class="table table-striped">
{% for project in projects %}
<tr>
<td style="width:99%">{% html_link project.name "project" project.id class="btn btn-link" %}</td>
<td>{% html_link '<i class="icon-list"></i>' "project_iptables" project.id class="btn btn-link" %}</td>
<td>{% html_link '<i class="icon-edit"></i>' "project_update" project.id class="btn btn-link" %}</td>
<td>{% html_link '<i class="icon-remove"></i>' "project_delete" project.id class="btn btn-link" %}</td>
</tr>
{% endfor %}
</table>
{% else %}
There are no projects defined.
{% endif %}
</div>
</div>
<div class="span6">
<h2>Locations</h2>
<div class="well">
{% if locations %}
<table class="table table-striped">
{% for location in locations %}
<tr>
<td style="width:99%">{{location.name}}</td>
</tr>
{% endfor %}
</table>
{% else %}
There are no locations defined.
{% endif %}
</div>
</div>
</div>
{% endblock %}
|