{%- from "_snippets.html" import data_box with context -%} {%- from "_snippets.html" import pair_data_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 %}
My devices
{% for device_token in session["devices"] %} {% endfor %}
Your device token must be 64 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji.
{{ big_period_buttons(resource_names, periods, active_params) }}
{{ line_box( "my_all_incidents_graph", "All incidents recorded on my devices", resources["my_all_incidents_graph"], "bucket", "count", "Incidents" ) }}
{{ line_box( "my_top_traps_by_incidents_graph", "Top traps by incidents recorded on my devices", resources["my_top_traps_by_incidents_graph"]["data"], "bucket", resources["my_top_traps_by_incidents_graph"]["ykeys"], resources["my_top_traps_by_incidents_graph"]["labels"], ) }}
{{ line_box( "my_top_countries_by_incidents_graph", "Top countries by incidents recorded on my devices", resources["my_top_countries_by_incidents_graph"]["data"], "bucket", resources["my_top_countries_by_incidents_graph"]["ykeys"], resources["my_top_countries_by_incidents_graph"]["labels"], ) }}
{{ request_missing_resources(resource_names, resources, active_params) }} {% endblock %}