From 060be3b48690fb7071cde548ce15479995040df8 Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 19 Jun 2025 07:59:28 +0200 Subject: [PATCH] refactor: remove deprecated templates --- .../lists/list-adoption-notices.html | 10 ------ .../lists/list-animal-shelters.html | 10 ------ .../fellchensammlung/lists/list-rules.html | 5 --- .../partial-adoption-notice-minimal.html | 35 ------------------- .../partials/partial-animal-card.html | 28 --------------- .../partials/partial-announcement.html | 11 ------ .../partials/partial-rescue-organization.html | 22 ------------ 7 files changed, 121 deletions(-) delete mode 100644 src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html delete mode 100644 src/fellchensammlung/templates/fellchensammlung/lists/list-animal-shelters.html delete mode 100644 src/fellchensammlung/templates/fellchensammlung/lists/list-rules.html delete mode 100644 src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice-minimal.html delete mode 100644 src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html delete mode 100644 src/fellchensammlung/templates/fellchensammlung/partials/partial-announcement.html delete mode 100644 src/fellchensammlung/templates/fellchensammlung/partials/partial-rescue-organization.html diff --git a/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html b/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html deleted file mode 100644 index d68836c..0000000 --- a/src/fellchensammlung/templates/fellchensammlung/lists/list-adoption-notices.html +++ /dev/null @@ -1,10 +0,0 @@ -{% load i18n %} -
- {% if adoption_notices %} - {% for adoption_notice in adoption_notices %} - {% include "fellchensammlung/partials/partial-adoption-notice-minimal.html" %} - {% endfor %} - {% else %} -

{% translate "Keine Vermittlungen gefunden." %}

- {% endif %} -
diff --git a/src/fellchensammlung/templates/fellchensammlung/lists/list-animal-shelters.html b/src/fellchensammlung/templates/fellchensammlung/lists/list-animal-shelters.html deleted file mode 100644 index 3c50983..0000000 --- a/src/fellchensammlung/templates/fellchensammlung/lists/list-animal-shelters.html +++ /dev/null @@ -1,10 +0,0 @@ -{% load i18n %} -
- {% if rescue_organizations %} - {% for rescue_organization in rescue_organizations %} - {% include "fellchensammlung/partials/partial-rescue-organization.html" %} - {% endfor %} - {% else %} -

{% translate "Keine Tierschutzorganisationen gefunden." %}

- {% endif %} -
diff --git a/src/fellchensammlung/templates/fellchensammlung/lists/list-rules.html b/src/fellchensammlung/templates/fellchensammlung/lists/list-rules.html deleted file mode 100644 index 323d273..0000000 --- a/src/fellchensammlung/templates/fellchensammlung/lists/list-rules.html +++ /dev/null @@ -1,5 +0,0 @@ -
-{% for rule in rules %} - {% include "fellchensammlung/partials/partial-rule.html" %} -{% endfor %} -
\ No newline at end of file diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice-minimal.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice-minimal.html deleted file mode 100644 index c8f2c5d..0000000 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice-minimal.html +++ /dev/null @@ -1,35 +0,0 @@ -{% load custom_tags %} -{% load i18n %} - -
-
-

{{ adoption_notice.name }}

-
- - - {% translate 'Melde diese Vermittlung an Moderator*innen' %} - -
-
-

- - {% if adoption_notice.location %} - {{ adoption_notice.location.str_hr }} - {% else %} - {{ adoption_notice.location_string }} - {% endif %} -

-

- {% if adoption_notice.description_short %} - {{ adoption_notice.description_short | render_markdown }} - {% endif %} -

- {% if adoption_notice.get_photo %} -
- {{ adoption_notice.get_photo.alt_text }} -
- {% endif %} -
diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html deleted file mode 100644 index 4f63c2c..0000000 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-animal-card.html +++ /dev/null @@ -1,28 +0,0 @@ -{% load i18n %} -{% load custom_tags %} -
-
-

{{ animal.name }}

- - -
-
{{ animal.species }}
-
{{ animal.get_sex_display }}
-
- - {% if has_edit_permission %} - - {% endif %} -
- - {% if animal.description %} -

{{ animal.description | render_markdown }}

- {% endif %} - {% for photo in animal.get_photos %} - {{ photo.alt_text }} - {% endfor %} -
diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-announcement.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-announcement.html deleted file mode 100644 index 5a229be..0000000 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-announcement.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load i18n %} -{% load custom_tags %} -
-
- {{ announcement.title }} -

- {{ announcement.content | render_markdown }} -

-
- -
diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-rescue-organization.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-rescue-organization.html deleted file mode 100644 index 65ee520..0000000 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-rescue-organization.html +++ /dev/null @@ -1,22 +0,0 @@ -{% load custom_tags %} -{% load i18n %} - -
-
-

{{ rescue_organization.name }}

-

- - {% 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 %} -

-
-
\ No newline at end of file