fix: Make sure content class is used when rendering markdown
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<div class="card-header">
|
||||
<h2 class="card-header-title">{{ faq.title }}</h2>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content content">
|
||||
{{ faq.content | render_markdown }}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -213,7 +213,7 @@
|
||||
<div class="card-header">
|
||||
<h1 class="card-header-title title is-4">{% translate "Beschreibung" %}</h1>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content content">
|
||||
<p class="expandable">{% if adoption_notice.description %}
|
||||
{{ adoption_notice.description | render_markdown }}
|
||||
{% else %}
|
||||
|
@@ -32,7 +32,9 @@
|
||||
{{ org.location_string }}
|
||||
{% endif %}
|
||||
{% if org.description %}
|
||||
<p>{{ org.description | render_markdown }}</p>
|
||||
<div class="block content">
|
||||
<p>{{ org.description | render_markdown }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if org.specializations %}
|
||||
@@ -52,7 +54,8 @@
|
||||
<h3 class="title is-5">{% translate 'Übergeordnete Organisation' %}</h3>
|
||||
<p>
|
||||
<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>
|
||||
</span>
|
||||
</p>
|
||||
@@ -77,7 +80,7 @@
|
||||
|
||||
{% if org.child_organizations %}
|
||||
<div class="block">
|
||||
<h2 class="title is-2">{% translate 'Unterorganisationen' %}</h2>
|
||||
<h2 class="title is-2">{% translate 'Unterorganisationen' %}</h2>
|
||||
{% with rescue_organizations=org.child_organizations %}
|
||||
{% include "fellchensammlung/lists/list-animal-shelters.html" %}
|
||||
{% endwith %}
|
||||
|
@@ -8,7 +8,7 @@
|
||||
<h1 class="message-header">
|
||||
{{ external_site_warning.title }}
|
||||
</h1>
|
||||
<div class="message-body">
|
||||
<div class="message-body content">
|
||||
{{ external_site_warning.content | render_markdown }}
|
||||
</div>
|
||||
{% else %}
|
||||
|
@@ -23,7 +23,9 @@
|
||||
{% endfor %}
|
||||
{% if introduction %}
|
||||
<h1>{{ introduction.title }}</h1>
|
||||
{{ introduction.content | render_markdown }}
|
||||
<div class="content">
|
||||
{{ introduction.content | render_markdown }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h2 class="title is-2">{% translate "Aktuelle Vermittlungen" %}</h2>
|
||||
@@ -44,7 +46,7 @@
|
||||
<h2 class="title is-1">{{ how_to.title }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-content content">
|
||||
{{ how_to.content | render_markdown }}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -71,7 +71,9 @@
|
||||
</div>
|
||||
{% else %}
|
||||
{% if adoption_notice.description_short %}
|
||||
{{ adoption_notice.description_short | render_markdown }}
|
||||
<div class="content">
|
||||
{{ adoption_notice.description_short | render_markdown }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@@ -19,13 +19,15 @@
|
||||
{{ adoption_notice.location_string }}
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
<div class="content">
|
||||
{% if adoption_notice.description %}
|
||||
{{ adoption_notice.description | render_markdown }}
|
||||
{% else %}
|
||||
{% translate "Keine Beschreibung" %}
|
||||
<p>
|
||||
{% translate "Keine Beschreibung" %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
{% if adoption_notice.get_photo %}
|
||||
<div class="adoption-notice-img">
|
||||
<img src="{{ MEDIA_URL }}/{{ adoption_notice.get_photo.image }}"
|
||||
|
@@ -8,18 +8,18 @@
|
||||
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p>
|
||||
<div class="block">
|
||||
<b><i class="fa-solid fa-location-dot"></i></b>
|
||||
{% if rescue_organization.location %}
|
||||
{{ rescue_organization.location }}
|
||||
{% else %}
|
||||
{{ rescue_organization.location_string }}
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
</div>
|
||||
<div class="block content">
|
||||
{% if rescue_organization.description_short %}
|
||||
{{ rescue_organization.description_short | render_markdown }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -3,7 +3,7 @@
|
||||
<div class="card-header">
|
||||
<h2 class="card-header-title">{{ rule.title }}</h2>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<p class="content">{{ rule.rule_text | render_markdown }}</p>
|
||||
<div class="card-content content">
|
||||
{{ rule.rule_text | render_markdown }}
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user