1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-12-22 20:44:43 +01:00
bird-lg/templates/summary.html

17 lines
681 B
HTML
Raw Normal View History

2012-01-20 00:12:19 +01:00
{% extends "layout.html" %}
{% block body %}
{% for host in summary %}
<div class="summary">
<h2>{{host}}/{{session.proto}}: {{command}}</h2>
<table>
<tr><th>Name</th><th>protocol</th><th>table</th><th>state</th><th>since</th><th>info</th></tr>
{% for row in summary[host] %}
<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>{{row.table}}</td><td>{{row.state}}</td><td>{{row.since}}</td><td>{{row.info}}</td></tr>
{% else %}
<tr><td>{{summary[host].error}}</td><td></td><td></td><td></td><td></td><td></td></tr>
{% endfor %}
</table>
</div>
{% endfor %}
{% endblock %}