{#- ---------------------------------------------------------------------------- Macro for rendering the main menu of the application. Entries in the menu are automatically hidden based on the permissions of the current user. ----------------------------------------------------------------------------- #} {%- macro render_menu_main() -%}
{%- endmacro %} {#- ---------------------------------------------------------------------------- Macro for rendering the authentication and anonymous submenus of the application. These menus get special handling. ----------------------------------------------------------------------------- #} {%- macro render_submenu_auth() -%} {%- if current_user.is_authenticated %}{{ time_mark[3] }}:{{ time_mark[2] }}:{{ time_mark[1] }} | {{ get_icon('clock') }} {%- if loop.index0 != 0 %} {%- set time_mark_prev = timemark_list[loop.index0 - 1] %} {{ time_mark[0] - timemark_list[loop.index0 - 1][0] }} s {{ babel_format_percent((time_mark[0] - time_mark_prev[0])/total_duration) }} {% endif %} | {% if time_mark[2] == 'end' %} {%- set dur_key = '{}:begin:{}'.format(time_mark[3], time_mark[1]) %} {%- if dur_key in dur_ns and dur_ns[dur_key] != timemark_list[loop.index0 - 1][0] %} {{ time_mark[0] - dur_ns[dur_key] }} s {{ babel_format_percent((time_mark[0] - dur_ns[dur_key])/total_duration) }} {%- endif %} {%- elif time_mark[2] == 'begin' %} {%- set dur_key = '{}:{}:{}'.format(time_mark[3], time_mark[2], time_mark[1]) %} {%- set _dummy = dur_ns.update({dur_key: time_mark[0]}) %} {%- endif %} |
{{ _('Total duration') }}:
{%- if timemark_list %}{{ total_duration }}{%- endif %}
{%- if show_to_render_time %}
{{ _('Duration to rendering time') }}:
{%- if timemark_list %}{{ get_datetime_utc() - timemark_list[0][0] }}{%- endif %}
{%- endif %}
{{ q }}
{{ item | pprint }} {{ item | pprint_item }}
{{ var | pprint }}
{{ var.__repr__() }}
{{ var.__str__() }}
{%- endif %}{% if mark_list and subitem.__str__() in mark_list %}{{ subitem }}{%- else %}{{ subitem }}{%- endif %}{%- if as_code %}
{%- endif %}
{%- endif -%}