{% extends 'timeseer.html' %}
{% from 'flows.html' import flows_breadcrumb, flows_header with context %}
{% from 'macros.html' import bootstrap_icon, info_popover, menu_back, visualize_score, visualize_series, visualize_series_name, visualize_split_kpi_score %}
{% macro compare(a, b) %}
{% if a == b %}
=
{% elif a > b %}
{{ b - a }}%
{% else %}
+{{ b - a }}%
{% endif %}
|
{% endmacro %}
{% block csp_style %}
'self' 'unsafe-inline'
{% endblock %}
{% block scripts %}
{% endblock %}
{% block styles %}
{% endblock %}
{% block menu %}
{{ menu_back(url_for('flows.display_flow', flowevaluationid=block_evaluation.flow_evaluation.db_id, sourcename=source_name)) }}
{% endblock %}
{% set title = 'Dashboard' %}
{% block breadcrumb %}
{{
flows_breadcrumb(block_evaluation, [
(block_evaluation.name, url_for('flow_univariate.display_dashboard', sourcename=source_name, blockevaluationid=block_evaluation.db_id)),
title,
])
}}
{% endblock %}
{% block main %}
{% call flows_header(block_evaluation, title) %}
{% endcall %}
{% if is_calculating %}
Results are being calculated.
Refresh page
{% else %}
{% if kpi_scores|count > 0 %}
{% if kpi_scores|count > 2 %}
{% endif %}
{{ kpi_set.name }} {{ bootstrap_icon('box-arrow-up-right') }}
|
Score |
Evolution |
{% for entry in kpi_set_entries|sort(attribute='kpi.name') %}
{% set kpi = entry.kpi %}
{% if entry.favorite %}
{{ bootstrap_icon('star-fill', 'text-primary icon') }}
{% endif %}
|
{{ kpi.name }}
|
{% if kpi.name in kpi_scores %}
{{ visualize_score(kpi_scores[kpi.name]) }}
{% else %}
- |
{% endif %}
{% if kpi.name in kpi_scores and kpi.name in comparison_kpi_scores %}
{{ compare(comparison_kpi_scores[kpi.name], kpi_scores[kpi.name]) }}
{% else %}
- |
{% endif %}
{% endfor %}
{% else %}
No results to display.
{% endif %}
{% if block_evaluation.flow_evaluation.group.time_range.has_no_time_range() is false %}
{% endif %}
{% for kpi, scores in kpi_score_scores|dictsort %}
Name |
Score |
{% if scores|count > 0 %}
{% for score in scores|sort(attribute="weight", reverse=True) %}
{{ score.metadata.name|capitalize }}
{{ info_popover(score.metadata.short_help_text) }}
|
{{ visualize_score(score.score) }}
{% endfor %}
{% endif %}
{% if scores|count == 0 %}
No results to display.
{% endif %}
{% endfor %}
{% if worst_series|count > 0 %}
{% else %}
No results to display.
{% endif %}
{% endif %}
{% endblock %}