{% from "_log_entry.html" import log_entry %} {%- if many %} {%- set ok_count = results|selectattr('ok')|list|length -%} {%- set fail_count = results|length - ok_count -%} {%- set summary -%} {%- if fail_count -%} {{ fail_count }} {%- else -%} {{ ok_count }} probed {%- endif -%} {%- endset -%} {% call log_entry("Probe", timestamp, summary) %}
{% for r in results %} {% set ep = episodes | selectattr("guid", "equalto", r.guid) | first if episodes is defined else none %} {% endfor %}
WhereStatusDetails
{% if ep %} {{ ep.title }} {% else %} {{ r.guid }} {% endif %} {% if r.ok %}ok{% include "icon_circle.svg" %}{% else %}fail{% include "icon_triangle.svg" %}{% endif %} {{ r.message }}
{% endcall %} {%- else %} {%- set ep = episodes | selectattr("guid", "equalto", result.guid) | first if episodes is defined else none -%} {%- set where_html -%} {%- if ep -%} {{ ep.title }} {%- else -%} {{ result.guid }} {%- endif -%} {%- endset -%} {%- set summary -%} {%- if result.ok -%} ok {{ where_html }} {%- else -%} fail {{ where_html }} {%- endif -%} {%- endset -%} {% call log_entry("Probe", timestamp, summary) %}

{{ result.message }}

{% endcall %} {%- endif %}