_('Loading...')
{%- import '_macros_site.html' as macros_site with context -%} {#- ############################################################################ MACROS FOR RENDERING CHARTS AND TABLES. These macros encapsulate common functionality when generating various charts and tables within the Mentat GUI. There are macros responsible for rendering HTML, all with code reusability in mind. ############################################################################ -#} {%- macro _get_table_agg_footer(data, format_dict={}) %}
{%- for table_aggregation in hawat_table_aggregations %}{{ _('Date') }} | {%- for column in data_frame %} {%- if column == '__SUM__' %}{{ _('Sum') }} | {%- else %}{{ column }} | {%- endif %} {%- endfor %}
---|---|---|
{{ bucket }} | {%- for val in row %}{{ babel_format_decimal(val) }} | {%- endfor %}
{{ chsection.column_name }} | {{ chsection.value_formats.column_name }} | {% if '__SHARE__' in data_frame %}{{ _('Share') }} | {% endif %}
---|---|---|
{%- if add_color %} {%- endif %} {{ name }} {% if csag_group and name and name not in ('__REST__','__unknown__') %}{{ macros_site.render_widget_csag_any(csag_group, [name], separate_dropdown = True, without_label = True) }}{% endif %} | {{ chsection.value_formats.format_function(row['count']) }} | {%- if '__SHARE__' in row %}{{ babel_format_percent(row['__SHARE__'], format='#,##0.##%') }} | {%- endif %}
{{ chsection.description }}
{%- endif %}