Import SRE inventory code

This commit is contained in:
Daniel Parks 2017-09-11 18:02:43 -07:00
commit 7364ccbff8
No known key found for this signature in database
GPG key ID: 7335138B2B9829EB
18 changed files with 5348 additions and 0 deletions

26
templates/nodes.html Normal file
View file

@ -0,0 +1,26 @@
{% extends "layout.html" %}
{% block title %}Node inventory{% endblock %}
{% block body %}
<h1>Node inventory</h1>
<table>
<thead>
<tr>
{% for cell in columns %}
{{ cell.head_html() }}
{% endfor %}
</tr>
</thead>
<tbody>
{% for node in nodes %}
<tr>
{% for cell in columns %}
{{ cell.body_html(node) }}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
{% block footer %}
<a href="../nodes.csv">Download CSV</a>
{% endblock %}