{{ header|raw }}

{% if paginator.offset == 0 %}
{% if pool_total %} {% for p in pool_summary %}

{{ who_spent|raw }} {{ p.total|number_format }} bonus points to donate to the {{ p.name }} {% if now > p.until_date|date('U') %}ended{% else %}ending in{% endif %} {{ p.until_date|time_diff }}.

{% endfor %} {% endif %} {% if summary.total %}

{{ who_spent|raw }}{% if pool_total %} a further{% endif %} {{ summary.total|number_format }} bonus points to purchase {{ summary.nr|number_format }} item{% if summary.nr > 1 %}s{% endif %}.

{% endif %} {% if pool_total and summary.total %}

That makes a grand total of {{ (pool_total + summary.total)|number_format }} points, {{ adjective }}well done!

{% endif %}
{% endif %} {% if not history %}

No purchase history

{% else %} {% if paginator.offset == 0 %}

Item summary

{% set total_item = 0 %} {% set total_cost = 0 %} {% for i in item %} {% set total_item = total_item + i.total %} {% set total_cost = total_cost + i.cost %} {% endfor %}
Item Total Cost
{{ i.title }} {{ i.total|number_format }} {{ i.cost|number_format }}
Total {{ total_item|number_format }} {{ total_cost|number_format }}

{% endif %}

Purchase Details

{{ paginator.linkbox|raw }} {% for h in history %} {% endfor %}
Item Price Purchase Date For
{{ h.Title }} {{ h.Price|number_format }} {{ h.PurchaseDate|time_diff }} {% if h.OtherUserID > 0 %}{{ h.OtherUserID|user_url }}{% else %} {% endif %}
{{ paginator.linkbox|raw }} {% endif %}