From b98d8ab5722073692f38a4387788985a33b13745 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Fri, 27 Sep 2024 17:49:27 -0300 Subject: [PATCH] feat: add a message when there aren't transactions to show --- app/templates/transactions/fragments/list.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/templates/transactions/fragments/list.html b/app/templates/transactions/fragments/list.html index 488de2c..454df33 100644 --- a/app/templates/transactions/fragments/list.html +++ b/app/templates/transactions/fragments/list.html @@ -1,5 +1,16 @@ +{% load i18n %}
{% for trans in transactions %} {% include 'transactions/fragments/item.html' with transaction=trans %} + {% empty %} +
+
+
+ +

{% translate "No transactions for this month" %}

+

{% translate "Why don't you add one?" %}

+
+
+
{% endfor %}