{% load i18n main_extras statement_extras %}
<div id="statements">
  <ul class="statements">
    {% if new_statement_url %}
      <li class="new">
        <span>
          <a href="{{ new_statement_url }}">{{ "file-add"|remix }}{% translate "Create statement" %}</a>
        </span>
      </li>
    {% endif %}
    {% for sta in statements %}
      <li>
        <a href="{{ sta.get_absolute_url }}" class="date"><span>{{ sta.date|date:"d" }}</span>
          <span>{{ sta.date|date:"M y" }}</span></a>
        <span class="value"><span>{{ sta.value|value }}</span>
        <span>{{ sta.diff|pmvalue }}</span></span>
        {% if not account %}
          <span class="account">
            <a href="{{ sta.account.get_absolute_url }}">{{ sta.account.icon|remix }}{{ sta.account }}</a>
          </span>
        {% endif %}
        <span class="icon">{{ sta.sum|check:sta.diff }}</span>
      </li>
    {% endfor %}
    {% if statements_url %}
      <li class="more">
        <span>
          <a href="{{ statements_url }}">{{ "gallery-view"|remixnl }}{% translate "View all statements" %}</a>
        </span>
      </li>
    {% endif %}
  </ul>
</div>
