{% extends 'timeseer.html' %} {% from 'flows.html' import flows_header with context %} {% from 'macros.html' import bootstrap_icon, pagination, visualize_series %} {% 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 %} {% block main %} {% call flows_header(block_evaluation.flow_evaluation, score.name|capitalize) %}
History
{% endcall %}
{% if score.short_help_text %}

{{ score.short_help_text }}

{{ score.name }}

{{ score.html_help_text|safe }}
{% 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|datetimeformat }}{{ frame.end_date|datetimeformat }} {{ (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 %}