From d7d22c2826aa1132df576e23810c368a65c006ca Mon Sep 17 00:00:00 2001 From: moanos Date: Tue, 6 Aug 2024 16:24:20 +0200 Subject: [PATCH] feat: show text when no adoption notices are found --- .../fellchensammlung/lists/list-adoption-notices.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html b/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html index 2612de4..ca0b4df 100644 --- a/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html +++ b/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html @@ -1,5 +1,10 @@ +{% load i18n %}
- {% for adoption_notice in adoption_notices %} - {% include "fellchensammlung/partials/partial-adoption-notice.html" %} - {% endfor %} + {% if adoption_notices %} + {% for adoption_notice in adoption_notices %} + {% include "fellchensammlung/partials/partial-adoption-notice.html" %} + {% endfor %} + {% else %} +

{% translate "Keine Vermittlungen gefunden." %}

+ {% endif %}