{% 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) %}
{% endcall %}{{ score.short_help_text }} {{ bootstrap_icon('question-circle') }}
{% endif %}{% 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 }} | {% if frame.end_date is not none %}{{ frame.end_date|ts_datetime }} | {{ (frame.end_date - frame.start_date)|timedeltaformat }} | {% else %}- | - | {% endif %}{{ visualize_series(frame.reference[0]) }} |