{% extends 'timeseer.html' %} {% from 'flows.html' import flows_breadcrumb, flows_header with context %} {% from 'macros.html' import bootstrap_icon, pagination, visualize_series, visualize_series_name %} {% from 'flow-menu.html' import flow_menu with context %} {% macro visualize_sorting(sort_field, sort_direction, field) %} {% if sort_field == field %} {% if sort_direction == 'asc' %} {% set other_direction = 'desc' %} {% else %} {% set other_direction = 'asc' %} {% endif %} {{ caller() }} {% if sort_direction == 'desc' %} {% else %} {% endif %} {% else %} {{ caller() }} {% if sort_direction == 'desc' %} {% else %} {% endif %} {% endif %} {% endmacro %} {% block menu %} {{ flow_menu(kpi.name) }} {% endblock %} {% set title = score.name|capitalize %} {% 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) %}
History
{% endcall %}
{% if score.short_help_text %}

{{ score.short_help_text }}

{{ score.name }}

{{ score.html_help_text|safe }}
{% endif %}
{% if block_evaluation.flow_evaluation.group.flow.origin.value in ['ui', 'control loop'] %}

Add filter

{% if source_name is not none %} {% endif %} {% if filter_block_name is none %}
No filter block was found. A new one will be created.
{% else %} {% endif %} {% if event_frame_types|count == 1 %} {% else %}
{% endif %}
{% endif %}
{% if event_frames %} {{ pagination( paging, url_for('.score_event_frames', blockevaluationid=block_evaluation.db_id, kpi=kpi.name, score=score.name, startDate=start_date, endDate=end_date, page=paging.page-1, sort=sort_field, direction=sort_direction), url_for('.score_event_frames', blockevaluationid=block_evaluation.db_id, kpi=kpi.name, score=score.name, startDate=start_date, endDate=end_date, page=paging.page+1, sort=sort_field, direction=sort_direction) ) }} {% for frame in event_frames %} {% if frame.end_date is not none %} {% else %} {% endif %} {% endfor %}
{% call visualize_sorting(sort_field, sort_direction, 'type') %} Event frame type {% endcall %} {% call visualize_sorting(sort_field, sort_direction, 'start_date') %} Start date {% endcall %} {% call visualize_sorting(sort_field, sort_direction, 'end_date') %} End date {% endcall %} {% call visualize_sorting(sort_field, sort_direction, 'duration') %} Duration {% endcall %} Visualize
{{ frame.type }} {{ frame.start_date|ts_datetime }}{{ frame.end_date|ts_datetime }} {{ (frame.end_date - frame.start_date)|timedeltaformat }}- - {{ visualize_series(frame.reference[0]) }}
{{ pagination( paging, url_for('.score_event_frames', blockevaluationid=block_evaluation.db_id, kpi=kpi.name, score=score.name, startDate=start_date, endDate=end_date, page=paging.page-1, sort=sort_field, direction=sort_direction), url_for('.score_event_frames', blockevaluationid=block_evaluation.db_id, kpi=kpi.name, score=score.name, startDate=start_date, endDate=end_date, page=paging.page+1, sort=sort_field, direction=sort_direction) ) }} {% else %}
No event frames available in this time frame.
{% endif %} {% endblock %}