2017-07-21 10:30:55 +01:00
|
|
|
{% extends "views/platform-admin/_base_template.html" %}
|
2018-07-10 14:39:54 +01:00
|
|
|
{% from "components/status-box.html" import status_box %}
|
2018-09-19 12:39:36 +01:00
|
|
|
{% from "components/form.html" import form_wrapper %}
|
2023-08-30 11:07:38 -04:00
|
|
|
{% from "components/components/details/macro.njk" import usaDetails %}
|
|
|
|
|
{% from "components/components/button/macro.njk" import usaButton %}
|
2016-11-14 16:42:08 +00:00
|
|
|
|
2017-02-13 10:45:15 +00:00
|
|
|
{% block per_page_title %}
|
2021-12-30 16:13:49 +00:00
|
|
|
Summary
|
2016-05-24 15:52:44 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% block platform_admin_content %}
|
|
|
|
|
|
2023-08-16 12:49:36 -04:00
|
|
|
<h1 class="font-body-2xl">
|
2017-07-31 11:33:39 +01:00
|
|
|
Summary
|
|
|
|
|
</h1>
|
2019-11-14 16:22:06 +00:00
|
|
|
|
|
|
|
|
{% set details_content %}
|
2018-09-19 12:39:36 +01:00
|
|
|
{% call form_wrapper(method="get") %}
|
2020-08-07 10:24:56 +01:00
|
|
|
{{ form.start_date(param_extensions={"hint": {"text":"Enter start date in format YYYY-MM-DD"}}) }}
|
|
|
|
|
{{ form.end_date(param_extensions={"hint": {"text":"Enter end date in format YYYY-MM-DD"}}) }}
|
2017-07-21 10:30:55 +01:00
|
|
|
</br>
|
2023-08-30 11:07:38 -04:00
|
|
|
{{ usaButton({ "text": "Filter", "classes": "margin-y-2" }) }}
|
2018-09-19 12:39:36 +01:00
|
|
|
{% endcall %}
|
2019-11-14 16:22:06 +00:00
|
|
|
{% endset %}
|
|
|
|
|
|
2023-08-30 11:07:38 -04:00
|
|
|
{{ usaDetails({
|
2019-12-13 09:41:34 +00:00
|
|
|
"summaryText": "Apply filters",
|
2019-11-14 16:22:06 +00:00
|
|
|
"html": details_content,
|
|
|
|
|
"open": form.errors | convert_to_boolean
|
|
|
|
|
}) }}
|
2016-12-06 12:38:12 +00:00
|
|
|
|
2023-08-23 16:18:25 -04:00
|
|
|
<div class="grid-row bottom-gutter">
|
2018-07-10 14:39:54 +01:00
|
|
|
{% for noti_type in global_stats %}
|
2023-08-23 16:18:25 -04:00
|
|
|
<div class="grid-col-6">
|
2025-05-07 11:08:03 -04:00
|
|
|
<span class="big-number-dark">
|
2023-12-16 22:11:26 -05:00
|
|
|
<span class="big-number-number">
|
|
|
|
|
{{ "{:,}".format(noti_type.black_box.number) }}
|
|
|
|
|
</span>
|
|
|
|
|
<span class="big-number-label">
|
|
|
|
|
{{ noti_type.black_box.number|message_count_label(noti_type.black_box.notification_type) }}
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
2018-07-10 14:39:54 +01:00
|
|
|
|
|
|
|
|
{% for item in noti_type.other_data %}
|
|
|
|
|
{{ status_box(
|
|
|
|
|
number=item.number,
|
|
|
|
|
label=item.label,
|
|
|
|
|
failing=item.failing,
|
|
|
|
|
percentage=item.percentage,
|
|
|
|
|
url=item.url)
|
|
|
|
|
}}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-08-23 16:18:25 -04:00
|
|
|
<div class="grid-row bottom-gutter">
|
2018-07-10 14:39:54 +01:00
|
|
|
{% for noti_type in global_stats %}
|
2023-08-23 16:18:25 -04:00
|
|
|
<div class="grid-col-6">
|
2018-07-10 14:39:54 +01:00
|
|
|
<div class="bordered-text-box">
|
|
|
|
|
<span class="big-number-number">{{ "{:,}".format(noti_type.test_data.number) }}</span>
|
|
|
|
|
{{ noti_type.test_data.label }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
2016-05-25 16:51:09 +01:00
|
|
|
|
2016-05-24 15:52:44 +01:00
|
|
|
{% endblock %}
|