bird-lg/templates/summary.html

26 lines
890 B
HTML
Raw Normal View History

2012-01-20 00:12:19 +01:00
{% extends "layout.html" %}
{% block body %}
{% for host in summary %}
<h3>{{host}}: {{command}}</h3>
2012-08-10 18:36:09 +02:00
<table class="table table-striped table-bordered table-condensed table-summary">
2012-02-05 14:30:32 +01:00
<thead>
<tr><th>Name</th><th>protocol</th><th>state</th><th>since</th><th>info</th></tr>
2012-02-05 14:30:32 +01:00
</thead>
<tbody>
2012-01-20 00:12:19 +01:00
{% for row in summary[host] %}
2012-07-20 14:00:20 +02:00
<tr class="{{ loop.cycle('odd', 'even') }}">
<td><a href="/detail/{{host}}/{{session.proto}}?q={{row.name}}">{{row.name}}</a></td>
<td>{{row.proto}}</td>
<td><span class="badge badge-{% if row.state == "up" %}success{% elif row.state == "down" %}info{% else %}danger{% endif %}">{{row.state}}</span></td>
2012-07-20 14:00:20 +02:00
<td>{{row.since}}</td>
<td>{{row.info}}</td>
</tr>
2012-01-20 00:12:19 +01:00
{% else %}
<tr><td>{{summary[host].error}}</td><td></td><td></td><td></td><td></td><td></td></tr>
{% endfor %}
2012-02-05 14:30:32 +01:00
</tbody>
2012-01-20 00:12:19 +01:00
</table>
2012-02-05 14:30:32 +01:00
<br />
2012-01-20 00:12:19 +01:00
{% endfor %}
{% endblock %}