From f79bb355cf7726c07d5d6451d99a7d45dec6cf31 Mon Sep 17 00:00:00 2001 From: moanos Date: Fri, 9 May 2025 20:20:04 +0200 Subject: [PATCH] feat: Link to bulma url --- src/fellchensammlung/models.py | 4 ++++ .../fellchensammlung/lists/list-adoption-notices.html | 2 +- .../partials/bulma-partial-adoption-notice-minimal.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index a18c49d..91aa175 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -363,6 +363,10 @@ class AdoptionNotice(models.Model): """Returns the url to access a detailed page for the adoption notice.""" return reverse('adoption-notice-detail', args=[str(self.id)]) + def get_absolute_url_bulma(self): + """Returns the url to access a detailed page for the adoption notice.""" + return reverse('adoption-notice-detail-bulma', args=[str(self.id)]) + def get_report_url(self): """Returns the url to report an adoption notice.""" return reverse('report-adoption-notice', args=[str(self.id)]) diff --git a/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html b/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html index d68836c..9b4cb2b 100644 --- a/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html +++ b/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html @@ -2,7 +2,7 @@
{% if adoption_notices %} {% for adoption_notice in adoption_notices %} - {% include "fellchensammlung/partials/partial-adoption-notice-minimal.html" %} + {% include "fellchensammlung/partials/bulma-partial-adoption-notice-minimal.html" %} {% endfor %} {% else %}

{% translate "Keine Vermittlungen gefunden." %}

diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-adoption-notice-minimal.html b/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-adoption-notice-minimal.html index 2bb548f..06db3d3 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-adoption-notice-minimal.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-adoption-notice-minimal.html @@ -4,7 +4,7 @@