{% from '_statistics.html' import scatter_plot, stats_badges, stats_box %} {% from 'message_box.html' import message_box %}
{%- trans %}Category page{% endtrans -%}
{{ category.title }}  ({% trans %}statistics{% endtrans %})
{% if has_stats %}
{% for plot in plots %} {% set title, subtitle, data = plot %} {% call stats_box(title=title, subtitle=subtitle, label=data.total, label_tooltip=_("Total"), classes='plot-container') %} {% if data['values'] %} {{ scatter_plot('plot-%s'|format(loop.index), data) }} {% else %} {% trans %}No data available{% endtrans %} {% endif %} {% endcall %} {% endfor %}
{{ stats_badges(values, 'left') }}
{% trans %}Last update:{% endtrans %} {{ updated|format_datetime }}
{% else %}
{% call message_box('info', fixed_width=true) %} {% trans %}There are no statistics available for this category.{% endtrans %} {% endcall %}
{% endif %}