- {% translate "Keine Beschreibung" %} -
- {% endif %} -diff --git a/src/fellchensammlung/aviews/embeddables.py b/src/fellchensammlung/aviews/embeddables.py index 6fa25ec..a9caafa 100644 --- a/src/fellchensammlung/aviews/embeddables.py +++ b/src/fellchensammlung/aviews/embeddables.py @@ -6,6 +6,11 @@ from fellchensammlung.models import RescueOrganization, AdoptionNotice, Species @headers({"X-Robots-Tag": "noindex"}) def list_ans_per_rescue_organization(request, rescue_organization_id, species_slug=None): + expand = request.GET.get("expand") + if expand is not None: + expand = True + else: + expand = False org = get_object_or_404(RescueOrganization, pk=rescue_organization_id) if species_slug is None: adoption_notices = AdoptionNotice.objects.filter(organization=org) diff --git a/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html b/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html index fd36a1a..7a2ea59 100644 --- a/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html +++ b/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html @@ -3,7 +3,11 @@
{% translate "Notfellchen" %}: {{ adoption_notice.animals.all|join_link:", " | safe }} -
-- Ort - {% if adoption_notice.location %} - {{ adoption_notice.location.str }} - {% else %} - {{ adoption_notice.location_string }} - {% endif %} -
-- {% translate "Keine Beschreibung" %} -
- {% endif %} -+ + {% if adoption_notice.location %} + {{ adoption_notice.location }} + {% else %} + {{ adoption_notice.location_string }} + {% endif %} +
+ {% endif %} +