fix: Make sure content class is used when rendering markdown

This commit is contained in:
2025-07-25 22:38:49 +02:00
parent 2589f1c703
commit d921623f31
9 changed files with 27 additions and 18 deletions

View File

@@ -30,7 +30,7 @@
<div class="card-header"> <div class="card-header">
<h2 class="card-header-title">{{ faq.title }}</h2> <h2 class="card-header-title">{{ faq.title }}</h2>
</div> </div>
<div class="card-content"> <div class="card-content content">
{{ faq.content | render_markdown }} {{ faq.content | render_markdown }}
</div> </div>
</div> </div>

View File

@@ -213,7 +213,7 @@
<div class="card-header"> <div class="card-header">
<h1 class="card-header-title title is-4">{% translate "Beschreibung" %}</h1> <h1 class="card-header-title title is-4">{% translate "Beschreibung" %}</h1>
</div> </div>
<div class="card-content"> <div class="card-content content">
<p class="expandable">{% if adoption_notice.description %} <p class="expandable">{% if adoption_notice.description %}
{{ adoption_notice.description | render_markdown }} {{ adoption_notice.description | render_markdown }}
{% else %} {% else %}

View File

@@ -32,7 +32,9 @@
{{ org.location_string }} {{ org.location_string }}
{% endif %} {% endif %}
{% if org.description %} {% if org.description %}
<div class="block content">
<p>{{ org.description | render_markdown }}</p> <p>{{ org.description | render_markdown }}</p>
</div>
{% endif %} {% endif %}
</div> </div>
{% if org.specializations %} {% if org.specializations %}
@@ -52,7 +54,8 @@
<h3 class="title is-5">{% translate 'Übergeordnete Organisation' %}</h3> <h3 class="title is-5">{% translate 'Übergeordnete Organisation' %}</h3>
<p> <p>
<span> <span>
<i class="fa-solid fa-building fa-fw" aria-label="{% trans 'Tierschutzorganisation' %}"></i> <i class="fa-solid fa-building fa-fw"
aria-label="{% trans 'Tierschutzorganisation' %}"></i>
<a href="{{ org.parent_org.get_absolute_url }}"> {{ org.parent_org }}</a> <a href="{{ org.parent_org.get_absolute_url }}"> {{ org.parent_org }}</a>
</span> </span>
</p> </p>

View File

@@ -8,7 +8,7 @@
<h1 class="message-header"> <h1 class="message-header">
{{ external_site_warning.title }} {{ external_site_warning.title }}
</h1> </h1>
<div class="message-body"> <div class="message-body content">
{{ external_site_warning.content | render_markdown }} {{ external_site_warning.content | render_markdown }}
</div> </div>
{% else %} {% else %}

View File

@@ -23,7 +23,9 @@
{% endfor %} {% endfor %}
{% if introduction %} {% if introduction %}
<h1>{{ introduction.title }}</h1> <h1>{{ introduction.title }}</h1>
<div class="content">
{{ introduction.content | render_markdown }} {{ introduction.content | render_markdown }}
</div>
{% endif %} {% endif %}
<h2 class="title is-2">{% translate "Aktuelle Vermittlungen" %}</h2> <h2 class="title is-2">{% translate "Aktuelle Vermittlungen" %}</h2>
@@ -44,7 +46,7 @@
<h2 class="title is-1">{{ how_to.title }}</h2> <h2 class="title is-1">{{ how_to.title }}</h2>
</div> </div>
</div> </div>
<div class="card-content"> <div class="card-content content">
{{ how_to.content | render_markdown }} {{ how_to.content | render_markdown }}
</div> </div>
</div> </div>

View File

@@ -71,7 +71,9 @@
</div> </div>
{% else %} {% else %}
{% if adoption_notice.description_short %} {% if adoption_notice.description_short %}
<div class="content">
{{ adoption_notice.description_short | render_markdown }} {{ adoption_notice.description_short | render_markdown }}
</div>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>

View File

@@ -19,13 +19,15 @@
{{ adoption_notice.location_string }} {{ adoption_notice.location_string }}
{% endif %} {% endif %}
</p> </p>
<p> <div class="content">
{% if adoption_notice.description %} {% if adoption_notice.description %}
{{ adoption_notice.description | render_markdown }} {{ adoption_notice.description | render_markdown }}
{% else %} {% else %}
<p>
{% translate "Keine Beschreibung" %} {% translate "Keine Beschreibung" %}
{% endif %}
</p> </p>
{% endif %}
</div>
{% if adoption_notice.get_photo %} {% if adoption_notice.get_photo %}
<div class="adoption-notice-img"> <div class="adoption-notice-img">
<img src="{{ MEDIA_URL }}/{{ adoption_notice.get_photo.image }}" <img src="{{ MEDIA_URL }}/{{ adoption_notice.get_photo.image }}"

View File

@@ -8,18 +8,18 @@
</div> </div>
<div class="card-content"> <div class="card-content">
<p> <div class="block">
<b><i class="fa-solid fa-location-dot"></i></b> <b><i class="fa-solid fa-location-dot"></i></b>
{% if rescue_organization.location %} {% if rescue_organization.location %}
{{ rescue_organization.location }} {{ rescue_organization.location }}
{% else %} {% else %}
{{ rescue_organization.location_string }} {{ rescue_organization.location_string }}
{% endif %} {% endif %}
</p> </div>
<p> <div class="block content">
{% if rescue_organization.description_short %} {% if rescue_organization.description_short %}
{{ rescue_organization.description_short | render_markdown }} {{ rescue_organization.description_short | render_markdown }}
{% endif %} {% endif %}
</p> </div>
</div> </div>
</div> </div>

View File

@@ -3,7 +3,7 @@
<div class="card-header"> <div class="card-header">
<h2 class="card-header-title">{{ rule.title }}</h2> <h2 class="card-header-title">{{ rule.title }}</h2>
</div> </div>
<div class="card-content"> <div class="card-content content">
<p class="content">{{ rule.rule_text | render_markdown }}</p> {{ rule.rule_text | render_markdown }}
</div> </div>
</div> </div>