feat: Link to bulma url

This commit is contained in:
moanos [he/him] 2025-05-09 20:20:04 +02:00
parent 45a534a042
commit f79bb355cf
3 changed files with 6 additions and 2 deletions

View File

@ -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)])

View File

@ -2,7 +2,7 @@
<div class="container-cards">
{% 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 %}
<p>{% translate "Keine Vermittlungen gefunden." %}</p>

View File

@ -4,7 +4,7 @@
<div class="card">
<div class="header-card-adoption-notice">
<h2 class="heading-card-adoption-notice">
<a href="{{ adoption_notice.get_absolute_url }}"> {{ adoption_notice.name }}</a>
<a href="{{ adoption_notice.get_absolute_url_bulma }}"> {{ adoption_notice.name }}</a>
</h2>
</div>