make server template more robust if there are no checks available
This commit is contained in:
parent
2bcd14006c
commit
02c24b67f7
1 changed files with 25 additions and 23 deletions
|
@ -20,7 +20,8 @@
|
||||||
<th>output</th>
|
<th>output</th>
|
||||||
<th>last try</th>
|
<th>last try</th>
|
||||||
<th>last successful</th>
|
<th>last successful</th>
|
||||||
{% for check in server.get('check_results') %}
|
{% if server.get('check_results') != None %}
|
||||||
|
{% for check in server.get('check_results', []) %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ check.get('name') }}
|
{{ check.get('name') }}
|
||||||
|
@ -42,6 +43,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue