2015-03-07 14:02:13 +01:00
|
|
|
{% load i18n %}
|
2018-06-26 08:46:40 +02:00
|
|
|
{% block cell-content %}
|
2015-11-19 16:03:15 +01:00
|
|
|
<h2>{% trans "Recent Transactions" %}</h2>
|
2015-03-07 14:02:13 +01:00
|
|
|
<ul>
|
|
|
|
{% for transaction in transactions %}
|
|
|
|
<li>{{ transaction.start_date|date:"d E o H:i"|lower }}
|
2015-04-21 16:40:46 +02:00
|
|
|
{% if transaction.is_paid %}
|
2015-03-07 14:02:13 +01:00
|
|
|
<ul>
|
|
|
|
{% for item in transaction.items.all %}
|
2021-10-14 11:46:16 +02:00
|
|
|
<li>{{ item.subject }}: {{ item.amount }} €
|
2020-06-22 17:40:56 +02:00
|
|
|
{% if item.source_url and item.user == request.user %}(<a href="{{ item.source_url}}">{% trans 'open' %}</a>){% endif %}</li>
|
2015-03-07 14:02:13 +01:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2015-04-21 16:40:46 +02:00
|
|
|
{% else %}
|
|
|
|
{{ transaction.get_status_label }}
|
|
|
|
{% endif %}
|
2015-03-07 14:02:13 +01:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2018-06-26 08:46:40 +02:00
|
|
|
{% endblock %}
|