refactor: rename partials

This commit is contained in:
2025-06-19 08:02:43 +02:00
parent 7a12a1a4d6
commit 43f38b88ce
22 changed files with 35 additions and 56 deletions

View File

@@ -6,7 +6,7 @@
{% block content %} {% block content %}
<div class="block"> <div class="block">
<div style="height: 70vh"> <div style="height: 70vh">
{% include "fellchensammlung/partials/bulma-partial-map.html" %} {% include "fellchensammlung/partials/partial-map.html" %}
</div> </div>
</div> </div>
<div class="block"> <div class="block">

View File

@@ -84,7 +84,7 @@
</span> </span>
</div> </div>
<div class="cell"> <div class="cell">
{% include "fellchensammlung/partials/bulma-sex-overview.html" %} {% include "fellchensammlung/partials/sex-overview.html" %}
</div> </div>
</div> </div>
</div> </div>
@@ -160,7 +160,7 @@
<div class="column"> <div class="column">
{% for animal in adoption_notice.animals %} {% for animal in adoption_notice.animals %}
<div class="block"> <div class="block">
{% include "fellchensammlung/partials/bulma-partial-animal-card.html" %} {% include "fellchensammlung/partials/partial-animal-card.html" %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
@@ -169,6 +169,6 @@
<div class="block"> <div class="block">
{% include "fellchensammlung/partials/bulma-partial-comment-section.html" %} {% include "fellchensammlung/partials/partial-comment-section.html" %}
</div> </div>
{% endblock %} {% endblock %}

View File

@@ -28,11 +28,11 @@
</div> </div>
</div> </div>
<div class="block"> <div class="block">
{% include "fellchensammlung/partials/bulma-partial-rescue-organization-contact.html" %} {% include "fellchensammlung/partials/partial-rescue-organization-contact.html" %}
</div> </div>
</div> </div>
<div class="column"> <div class="column">
{% include "fellchensammlung/partials/bulma-partial-map.html" %} {% include "fellchensammlung/partials/partial-map.html" %}
</div> </div>
</div> </div>
@@ -41,7 +41,7 @@
<div class="container-cards"> <div class="container-cards">
{% if org.adoption_notices %} {% if org.adoption_notices %}
{% for adoption_notice in org.adoption_notices %} {% for adoption_notice in org.adoption_notices %}
{% include "fellchensammlung/partials/bulma-partial-adoption-notice-minimal.html" %} {% include "fellchensammlung/partials/partial-adoption-notice-minimal.html" %}
{% endfor %} {% endfor %}
{% else %} {% else %}
<p>{% translate "Keine Vermittlungen gefunden." %}</p> <p>{% translate "Keine Vermittlungen gefunden." %}</p>

View File

@@ -6,7 +6,7 @@
{% block content %} {% block content %}
{% for announcement in announcements %} {% for announcement in announcements %}
{% include "fellchensammlung/partials/bulma-partial-announcement.html" %} {% include "fellchensammlung/partials/partial-announcement.html" %}
{% endfor %} {% endfor %}
{% if introduction %} {% if introduction %}
<h1>{{ introduction.title }}</h1> <h1>{{ introduction.title }}</h1>
@@ -21,7 +21,7 @@
</div> </div>
<div class="block" style="height: 50vh"> <div class="block" style="height: 50vh">
{% include "fellchensammlung/partials/bulma-partial-map.html" %} {% include "fellchensammlung/partials/partial-map.html" %}
</div> </div>
{% if how_to %} {% if how_to %}

View File

@@ -3,7 +3,7 @@
<div class="grid is-col-min-10"> <div class="grid is-col-min-10">
{% for adoption_notice in adoption_notices %} {% for adoption_notice in adoption_notices %}
<div class="cell"> <div class="cell">
{% include "fellchensammlung/partials/bulma-partial-adoption-notice-minimal.html" %} {% include "fellchensammlung/partials/partial-adoption-notice-minimal.html" %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>

View File

@@ -3,7 +3,7 @@
{% if rescue_organizations %} {% if rescue_organizations %}
{% for rescue_organization in rescue_organizations %} {% for rescue_organization in rescue_organizations %}
<div class="cell"> <div class="cell">
{% include "fellchensammlung/partials/bulma-partial-rescue-organization.html" %} {% include "fellchensammlung/partials/partial-rescue-organization.html" %}
</div> </div>
{% endfor %} {% endfor %}
{% else %} {% else %}

View File

@@ -1,5 +1,5 @@
<div class="container-cards"> <div class="container-cards">
{% for rule in rules %} {% for rule in rules %}
{% include "fellchensammlung/partials/bulma-partial-rule.html" %} {% include "fellchensammlung/partials/partial-rule.html" %}
{% endfor %} {% endfor %}
</div> </div>

View File

@@ -4,6 +4,6 @@
{% block content %} {% block content %}
<div style="height:70vh"> <div style="height:70vh">
{% include "fellchensammlung/partials/bulma-partial-map.html" %} {% include "fellchensammlung/partials/partial-map.html" %}
</div> </div>
{% endblock %} {% endblock %}

View File

@@ -1,25 +0,0 @@
{% load i18n %}
<div class="card block">
<div class="card-header">
<h2 class="card-header-title title is-2">{% translate 'Kommentare' %}</h2>
</div>
<div class="card-content">
{% if adoption_notice.comments %}
{% for comment in adoption_notice.comments %}
{% include "fellchensammlung/partials/bulma-partial-comment.html" %}
{% endfor %}
{% else %}
<p class="is-italic">{% translate 'Noch keine Kommentare' %}</p>
{% endif %}
</div>
</div>
<div class="block">
{% if user.is_authenticated %}
{% include "fellchensammlung/forms/bulma-form-comment.html" %}
{% else %}
<p class="card-footer-item">
{% translate 'Du musst dich einloggen um Kommentare zu hinterlassen' %}
</p>
{% endif %}
</div>

View File

@@ -22,7 +22,7 @@
{% endif %}</p> {% endif %}</p>
</div> </div>
<div class="cell"> <div class="cell">
{% include "fellchensammlung/partials/bulma-sex-overview.html" %} {% include "fellchensammlung/partials/sex-overview.html" %}
</div> </div>
</div> </div>
</div> </div>

View File

@@ -24,7 +24,7 @@
{% endif %}</p> {% endif %}</p>
</div> </div>
<div class="cell"> <div class="cell">
{% include "fellchensammlung/partials/bulma-sex-overview.html" %} {% include "fellchensammlung/partials/sex-overview.html" %}
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1,21 +1,25 @@
{% load i18n %} {% load i18n %}
<div class="container-comments"> <div class="card block">
<h2>{% translate 'Kommentare' %}</h2> <div class="card-header">
<h2 class="card-header-title title is-2">{% translate 'Kommentare' %}</h2>
</div>
<div class="card-content">
{% if adoption_notice.comments %} {% if adoption_notice.comments %}
{% for comment in adoption_notice.comments %} {% for comment in adoption_notice.comments %}
{% include "fellchensammlung/partials/partial-comment.html" %} {% include "fellchensammlung/partials/partial-comment.html" %}
{% endfor %} {% endfor %}
{% else %} {% else %}
<div class="card"> <p class="is-italic">{% translate 'Noch keine Kommentare' %}</p>
<p>{% translate 'Noch keine Kommentare' %}</p> {% endif %}
</div> </div>
{% endif %} </div>
<div class="block">
{% if user.is_authenticated %} {% if user.is_authenticated %}
{% include "fellchensammlung/forms/form-comment.html" %} {% include "fellchensammlung/forms/bulma-form-comment.html" %}
{% else %} {% else %}
{% translate 'Du musst dich einloggen um Kommentare zu hinterlassen' %} <p class="card-footer-item">
{% endif %} {% translate 'Du musst dich einloggen um Kommentare zu hinterlassen' %}
</p>
{% endif %}
</div> </div>

View File

@@ -9,7 +9,7 @@
<!--- Map --> <!--- Map -->
<div class="column is-two-thirds"> <div class="column is-two-thirds">
<div style="height: 75vh"> <div style="height: 75vh">
{% include "fellchensammlung/partials/bulma-partial-map.html" %} {% include "fellchensammlung/partials/partial-map.html" %}
</div> </div>
</div> </div>
<!--- Search Form --> <!--- Search Form -->