diff --git a/app/templates/main.html.j2 b/app/templates/main.html.j2 index debd102..5fdb7e6 100644 --- a/app/templates/main.html.j2 +++ b/app/templates/main.html.j2 @@ -20,30 +20,32 @@ output last try last successful - {% for check in server.get('check_results') %} - - - {{ check.get('name') }} - - - {{ check.get('state') }} - - - {{ check.get('command') | join(' ') }} - - - {{ check.get('output').get('output_text') }} - - - {{ check.get('last_exec_start') }} - - - {{ check.get('last_exec_finish') }} - - - {% endfor %} + {% if server.get('check_results') != None %} + {% for check in server.get('check_results', []) %} + + + {{ check.get('name') }} + + + {{ check.get('state') }} + + + {{ check.get('command') | join(' ') }} + + + {{ check.get('output').get('output_text') }} + + + {{ check.get('last_exec_start') }} + + + {{ check.get('last_exec_finish') }} + + + {% endfor %} + {% endif %} {% endfor %} - \ No newline at end of file +