mirror of
https://github.com/sileht/bird-lg.git
synced 2024-11-25 00:04:42 +01:00
Add color to peer status
This commit is contained in:
parent
3905d7d0ac
commit
cb6bb4dd31
|
@ -8,7 +8,14 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
{% 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>
|
||||
<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><span class="label label-{% if row.state == "up" %}success{% elif row.state == "down" %}default{% else %}important{% endif %}">{{row.state}}</span></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 %}
|
||||
|
|
Loading…
Reference in a new issue