Merge pull request #135 from stoyansbg/master
Added inventory page along with a navbar link.
This commit is contained in:
25
puppetboard/templates/inventory.html
Normal file
25
puppetboard/templates/inventory.html
Normal 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 %}
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user