{#- ---------------------------------------------------------------------------- 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 %}{{ form_item_value }}
{{ item | pprint }}
{{ var | pprint }}
{{ var.__repr__() }}
{{ var.__str__() }}
{{ gettext('Name') }} | # | % | |
---|---|---|---|
{{ loop.index }} | {{ chitemkey }} | {{ babel_format_decimal(chdata.get(chitemkey, 0)) }} | {{ babel_format_percent(chdata.get(chitemkey, 0) / chstats.get('sum_' + chstatkey, 1)) }} |
{{ gettext('Sum') }} | {{ babel_format_decimal(chstats.get('sum_' + chstatkey, 0)) }} | {{ babel_format_percent(1.0) }} |
{{ get_fa_icon('sum') }} Sum | {{ babel_format_decimal(chstats.get('sum_' + chstatkey, 0)) }} | {{ babel_format_percent(1.0) }} |
---|---|---|
{{ get_fa_icon('cnt') }} Cnt | {{ babel_format_decimal(chstats.get('cnt_' + chstatkey, 0)) }} | {{ get_fa_icon('na') }} |
{{ get_fa_icon('min') }} Min | {{ babel_format_decimal(chstats.get('min_' + chstatkey, 0)) }} | {{ babel_format_percent(chstats.get('min_' + chstatkey, 0) / chstats.get('sum_' + chstatkey, 1)) }} |
{{ get_fa_icon('max') }} Max | {{ babel_format_decimal(chstats.get('max_' + chstatkey, 0)) }} | {{ babel_format_percent(chstats.get('max_' + chstatkey, 0) / chstats.get('sum_' + chstatkey, 1)) }} |
{{ get_fa_icon('avg') }} Avg | {{ babel_format_decimal(chstats.get('avg_' + chstatkey, 0)) }} | {{ babel_format_percent(chstats.get('avg_' + chstatkey, 0) / chstats.get('sum_' + chstatkey, 1)) }} |