feat: Link to bulma url
This commit is contained in:
parent
45a534a042
commit
f79bb355cf
@ -363,6 +363,10 @@ class AdoptionNotice(models.Model):
|
|||||||
"""Returns the url to access a detailed page for the adoption notice."""
|
"""Returns the url to access a detailed page for the adoption notice."""
|
||||||
return reverse('adoption-notice-detail', args=[str(self.id)])
|
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):
|
def get_report_url(self):
|
||||||
"""Returns the url to report an adoption notice."""
|
"""Returns the url to report an adoption notice."""
|
||||||
return reverse('report-adoption-notice', args=[str(self.id)])
|
return reverse('report-adoption-notice', args=[str(self.id)])
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="container-cards">
|
<div class="container-cards">
|
||||||
{% if adoption_notices %}
|
{% if adoption_notices %}
|
||||||
{% for adoption_notice in 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 %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>{% translate "Keine Vermittlungen gefunden." %}</p>
|
<p>{% translate "Keine Vermittlungen gefunden." %}</p>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="header-card-adoption-notice">
|
<div class="header-card-adoption-notice">
|
||||||
<h2 class="heading-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>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user