{% load i18n date_formating humanize table_form %}

{% trans "Numbers" %}

{% if form %}
{% csrf_token %} {% bs_form form %}
{% endif %}

{% trans "Total:" %} {{dashboard.total_number|intcomma}}

{% trans 'Draw rectangle on the graph to zoom. Double-click to reinitialize.' %}

{% trans 'Right-click on this image to save it.' %}

{% for idx, lbl, values in dashboard.values %} {% for value in values reversed %}{% if forloop.parentloop.counter0 %}{%endif%}{% endfor%} {% endfor%}
{{lbl}}{% else %}{%endif%}{{value|date_formating }}{% if forloop.parentloop.counter0 %}{% else %}

{% if dashboard.periods %}

{% trans "By years" %}

{% trans "Average:" %}
{{dashboard.average}}
{% trans "Variance:" %}
{{dashboard.variance}}
{% trans "Standard deviation:" %}
{{dashboard.standard_deviation}}
{% trans "Median:" %}
{{dashboard.median}}
{% trans "Mode:" %}
{{dashboard.mode}}

{% endif %} {% if dashboard.operation_average %}

{% trans "By operations" %}

{% trans "Average:" %}
{{dashboard.operation_average}}
{% trans "Variance:" %}
{{dashboard.operation_variance}}
{% trans "Standard deviation:" %}
{{dashboard.operation_standard_deviation}}
{% trans "Median:" %}
{{dashboard.operation_median}}
{% trans "Mode:" %}
{{dashboard.operation_mode}}

{% endif %}

{% trans "Created last" %}

{% for item in dashboard.lasts %}{% endfor %}
{{lbl}}{% trans "Created" %}
{{item}} {{item.history_date}} {% if item.get_show_url %} {%endif%}

{% trans "Recent changes" %}

{% for item in dashboard.recents %}{% endfor %}
{{lbl}}{% trans "Modified" %}
{{item}} {{item.history_date}} {% if item.get_show_url %} {%endif%}