{% from "_forms.html" import quickform, parsefield %} {% extends "layout.html" %} {%- macro accordion(title, container_list) -%}
{% for container in container_list %}
{{ title }}: {{container_list|length}}

{% endfor %}
{%- endmacro -%} {%- macro call_indicator(call_dict) -%} {% if call_dict and call_dict['incidents'] %} {{ call_dict['incidents']|length }} {%- if call_dict['status'] and call_dict['status']['name'] == 'unknown' %} {% elif call_dict['status'] and call_dict['status']['name'] == 'done' %}* {% elif call_dict['status'] and call_dict['status']['name'] == 'postponed' %}+ {% elif call_dict['status'] and call_dict['status']['name'] == 'insufficient incidents' %} {% else %}? {% endif %} {% else %} 0 {% endif %} {%- endmacro -%} {%- macro call_table_head(event, call, use) -%} {% if event[call] and event[call]['incidents'] %} {% if call == 'create' %}Create
DT#1 {%- elif call == 'dynamic_bmgs' %}Dynamic BMGs
DT#2 {%- elif call == 'in_progress' %}In Progress
DT#3 {%- elif call == 'finish' %}Finish
DT#4 {%- elif call == 'result' %}Result
DT#5 {%- elif call == 'canceled' %}Canceled
DT#6 {% endif %}
{% if event[call] and event[call]['status'] and not event[call]['status']['name'] == 'unknown' %}
{{ event[call]['status']['name'] }} {% endif %} {% endif %} {%- endmacro -%} {%- macro call_table_body(event, call) -%} {% if event[call] and event[call]['incidents'] %} {% for provider,incidents_dict in event[call]['incidents_per_provider'].items() %} {{ provider }}
{% endfor %} {% endif %} {%- endmacro -%} {% block content %} {% if menuInfo['incidents'] %}

Linked dataproxies

    {% for provider_hash, provider in menuInfo['incidents']['dataproxy_link'].items() %}
  1. {{provider["name"]}}
    {% if not provider["status"] == "ok"%} {% if provider["details"] %} {% for group, subscriber_list in provider["details"]["subscribers"].items() %} {% for subscriber in subscriber_list %} {% if subscriber["status"] == "nok" %} Anonymous subscriber
    {% elif subscriber["status"] == "unknown" %} Anonymous subscriber, nothing sent yet
    {% endif %} {% endfor %} {% endfor %} {% for incoming in provider["details"]["providers"] %} {% if incoming["status"] == "ok" %} {% else %} {% endif %} {{incoming["name"]}}: {{incoming["last_incident"]}}
    {% endfor %} {% else %} Unknown reason
    {% endif %} {% endif %}
  2. {% endfor %}
{% endif %}

Received incidents ({{ use }})

Showing all received incidents for events that are scheduled between {{ from_date }} (change with from_date url argument) and {{ to_date }} (change with to_date url argument) {% if matching %} that match {{ matching }} in their identifier {% endif %}

All events are listed as with their id and incidents count
Id "Scheduled Time-Sport-Event Group-Home Team-Away Team"
Incident count "Create - In progress - Finish - Result"

Markings according to the status:
  • No special mark - Nothing done yet
  • * - Incident successfully triggered an action on the blockchain
  • + - Action is deliberately postponed
  • ? - An error occured, manual checking necessary

{% if events|length > 0 %}

{% for event in events %}
{{ event['id_string'] }}: {{ call_indicator(event['create']) }} - {{ call_indicator(event['dynamic_bmgs']) }} - {{ call_indicator(event['in_progress']) }} - {{ call_indicator(event['finish']) }} - {{ call_indicator(event['result']) }} - {{ call_indicator(event['canceled']) }}

{{ call_table_head(event, 'create', use) }} {{ call_table_head(event, 'dynamic_bmgs', use) }} {{ call_table_body(event, 'create') }} {{ call_table_body(event, 'dynamic_bmgs') }} {{ call_table_head(event, 'in_progress', use) }} {{ call_table_head(event, 'finish', use) }} {{ call_table_body(event, 'in_progress') }} {{ call_table_body(event, 'finish') }} {{ call_table_head(event, 'result', use) }} {{ call_table_head(event, 'canceled', use) }} {{ call_table_body(event, 'result') }} {{ call_table_body(event, 'canceled') }}

{% endfor %}
{% else %} No incidents came in yet. {% endif %} {% endblock %}