{%- from "_snippets.html" import data_box with context -%} {%- from "_snippets.html" import pair_data_box with context -%} {%- from "_snippets.html" import map_box with context -%} {%- from "_snippets.html" import line_box with context -%} {%- from "_snippets.html" import country_code_item with context -%} {%- from "_snippets.html" import big_period_buttons with context -%} {%- from "_snippets.html" import request_missing_resources with context -%} {% extends "layout.html" %} {% block body %}
{{ map_box( "all_countries_by_incidents_list", "Countries by recorded incidents", resources["all_countries_by_incidents_list"], "incidents" ) }}
{{ big_period_buttons(resource_names, periods, active_params) }}
{{ line_box("all_incidents_graph", "Number of recorded incidents during the time", resources["all_incidents_graph"], "bucket", "count", "Incidents") }}
{% call(data_item) data_box("top_countries_by_incidents_list", "Top countries by recorded incidents", resources["top_countries_by_incidents_list"], "country") -%} {{ country_code_item(data_item) }} {%- endcall %}
{{ pair_data_box("top_incident_types_by_incidents_list", "Top incident types by recorded incidents", resources["top_incident_types_by_incidents_list"], "source", "action") }}
{{ line_box( "top_countries_by_incidents_graph", "Top countries by recorded incidents", resources["top_countries_by_incidents_graph"]["data"], "bucket", resources["top_countries_by_incidents_graph"]["ykeys"], resources["top_countries_by_incidents_graph"]["labels"] ) }}
{{ line_box( "top_traps_by_incidents_graph", "Top traps by recorded incidents", resources["top_traps_by_incidents_graph"]["data"], "bucket", resources["top_traps_by_incidents_graph"]["ykeys"], resources["top_traps_by_incidents_graph"]["labels"] ) }}
{{ line_box( "top_actions_by_incidents_graph", "Top actions by recorded incidents", resources["top_actions_by_incidents_graph"]["data"], "bucket", resources["top_actions_by_incidents_graph"]["ykeys"], resources["top_actions_by_incidents_graph"]["labels"] ) }}
{{ request_missing_resources(resource_names, resources, active_params) }} {% endblock %}