{% extends "header.html" %} {% macro toggle_output(output, target, title) %}
{{output}}
{% endmacro %} {% macro check_result(check, title, environment, is_admin, context) %} {% set check_summary = check['summary'] if check.get('summary') != None else '' %}
{% if check.get('assc_action_status')%} {% endif %}
{{check_summary[:77] + '...' if (check_summary and check_summary|length > 80) else check_summary}}
{{check.get('local_time', 'No timestamp')}}

{% if check.get('description') %}
{{check['description']}}
{% endif %} {% if check.get('ff_link') %} {{check['ff_link']}} {% endif %} {% if check.get('brief_output')%} {{toggle_output(check['brief_output'], environment + '-' + check['name'] + '-brief', 'Toggle brief output')}} {% endif %} {% if check.get('full_output')%} {{toggle_output(check['full_output'], environment + '-' + check['name'] + '-full', 'Toggle full output')}} {% endif %} {% if check.get('admin_output') and is_admin %} {{toggle_output(check['admin_output'], environment + '-' + check['name'] + '-admin', 'Toggle admin output')}} {% endif %} {% if check.get('assc_action') %} {{toggle_output(check['assc_action'], environment + '-' + check['name'] + '-assc-action', 'Toggle associated action')}} {% endif %} {% if check.get('action') and is_admin %}
{% if not check.get('allow_action') %} {% else %} {% endif %}
{% endif %}
Result History {% if check.get('action_history') %} Action History {% endif %} {% if check.get('kwargs') %}
{% for kwarg in check['kwargs'] %} {% if kwarg not in ['uuid', '_run_info', 'runtime_seconds', 'queue_action'] %} {{kwarg}} {% if is_admin %}
{% else %} {{check['kwargs'][kwarg]}}
{% endif %} {% elif kwarg == 'queue_action' %} {% if check.get('action') %} {{kwarg}} {% if is_admin %}
{% else %} {{check['kwargs'][kwarg]}}
{% endif %} {% endif %} {% endif %} {% endfor %} {% if is_admin %} {% endif %}
{% endif %}
{% endmacro %}