{% extends 'series-layout.html' %} {% from 'macros.html' import pagination %} {% 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 %} {{ series_menu('Event frames') }} {% endblock %} {% block series_title %}
{% 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 %} | Action | ||
---|---|---|---|---|---|---|
{{ frame.type }} | {{ frame.start_date|datetimeformat }} | {% if frame.end_date is not none %}{{ frame.end_date|datetimeformat }} | {{ (frame.end_date - frame.start_date)|timedeltaformat }} | {% else %}- | - | {% endif %}