diff --git a/src/allmende_payment_system/templates/index.html.jinja b/src/allmende_payment_system/templates/index.html.jinja index ae4103b..0067251 100644 --- a/src/allmende_payment_system/templates/index.html.jinja +++ b/src/allmende_payment_system/templates/index.html.jinja @@ -45,26 +45,36 @@ {% if transactions and transactions|length > 0 %} {% for transaction in transactions[:10] %}
-
-
{{ transaction.type|transaction_type_de }}
- - {{ transaction.timestamp | timestamp_de }} - - {% if transaction.type == "order" %} - - {% endif %} -
-
- - {{ transaction.total_amount | format_number }} € - - {% if transaction.quantity %} -
{{ transaction.quantity }} €
- {% endif %} -
-
+
+
{{ transaction.type|transaction_type_de }}
+ + {{ transaction.timestamp | timestamp_de }} + + {% if transaction.type == "order" %} +
+ {% if transaction.order and transaction.order.items|length > 0 %} +
+ {% for item in transaction.order.items[:3] %} + {{ item.product.name }}{% if loop.index < transaction.order.items[:3]|length %},{% endif %} + {% endfor %} + {% if transaction.order.items|length > 3 %} +
+ {{ transaction.order.items|length - 3 }} weitere{% if transaction.order.items|length - 3 == 1 %} Artikel{% else %} Artikel{% endif %}
+ {% endif %} +
+ {% endif %} + Einkauf ansehen +
+ {% endif %} +
+
+ + {{ transaction.total_amount | format_number }} € + + {% if transaction.quantity %} +
{{ transaction.quantity }} €
+ {% endif %} +
+ {% endfor %} {% else %}