Merge pull request #135 from stoyansbg/master

Added inventory page along with a navbar link.
This commit is contained in:
Spencer Krum
2015-06-09 16:24:19 -07:00
5 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{% extends 'layout.html' %}
{% block content %}
<div class="ui fluid icon input hide" style="margin-bottom:20px">
<input autofocus="autofocus" class="filter-table" placeholder="Type here to filter...">
</div>
<table class='ui compact basic table inventory'>
<thead>
<tr>
{% for description in fact_desc %}
<th>{{description}}</th>
{% endfor %}
</tr>
</thead>
<tbody class="searchable">
{% for nodename in nodedata %}
<tr>
{% for item in nodedata[nodename] %}
<td>{{item}}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock content %}

View File

@@ -33,6 +33,7 @@
('facts', 'Facts'),
('reports', 'Reports'),
('metrics', 'Metrics'),
('inventory', 'Inventory'),
('query', 'Query'),
] %}
<a {% if endpoint == request.endpoint %} class="active item" {% else %} class="item" {% endif %}