Differentiate protocols that are passive and in the 'start' state in the protocol summary view.

This is a normal condition, so the protocols shouldn't be flagged with a 'danger' badge.
This commit is contained in:
Simon Marsh 2019-01-12 11:24:02 +00:00
parent 66df1b2230
commit 2649fafaf9

View File

@ -11,7 +11,7 @@
<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>
<td><span class="badge badge-{% if row.state == "up" %}success{% elif row.state == "down" %}default{% elif row.state == "start" and row.info == "Passive" %}info{% else %}danger{% endif %}">{{row.state}}</span></td>
<td>{{row.since}}</td>
<td>{{row.info}}</td>
</tr>