diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index e4ffe02..1976732 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -156,6 +156,9 @@ class RescueOrganization(models.Model): def get_absolute_url(self): return reverse("rescue-organization-detail", args=[str(self.pk)]) + def get_absolute_url_bulma(self): + return reverse("bulma-rescue-organization-detail", args=[str(self.pk)]) + @property def adoption_notices(self): return AdoptionNotice.objects.filter(organization=self) @@ -173,6 +176,8 @@ class RescueOrganization(models.Model): return "" if len(self.description) > 200: return self.description[:200] + _(f" ... [weiterlesen]({self.get_absolute_url()})") + else: + return self.description def set_checked(self): self.last_checked = timezone.now() diff --git a/src/fellchensammlung/static/fellchensammlung/img/logo_transparent_small.png b/src/fellchensammlung/static/fellchensammlung/img/logo_transparent_small.png new file mode 100644 index 0000000..b57c9e3 Binary files /dev/null and b/src/fellchensammlung/static/fellchensammlung/img/logo_transparent_small.png differ diff --git a/src/fellchensammlung/templates/fellchensammlung/bulma-animal-shelters.html b/src/fellchensammlung/templates/fellchensammlung/bulma-animal-shelters.html new file mode 100644 index 0000000..47e6f75 --- /dev/null +++ b/src/fellchensammlung/templates/fellchensammlung/bulma-animal-shelters.html @@ -0,0 +1,15 @@ +{% extends "fellchensammlung/base_bulma.html" %} +{% load i18n %} + +{% block title %}
{{ org.description | render_markdown }}
+ {% endif %} +{% translate "Keine Vermittlungen gefunden." %}
+ {% endif %} +{% translate "Keine Tierschutzorganisationen gefunden." %}
+ {% endif %} ++ + {% if rescue_organization.location %} + {{ rescue_organization.location }} + {% else %} + {{ rescue_organization.location_string }} + {% endif %}
++ + {% if rescue_organization.location %} + {{ rescue_organization.location.str_hr }} + {% else %} + {{ rescue_organization.location_string }} + {% endif %} +
++ {% if rescue_organization.description_short %} + {{ rescue_organization.description_short | render_markdown }} + {% endif %} +
+