fix: Use block only when description exists
This commit is contained in:
@@ -3,8 +3,10 @@
|
|||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h2 class="card-header-title"><a
|
<h2 class="card-header-title">
|
||||||
href="{{ rescue_organization.get_absolute_url }}"> {{ rescue_organization.name }}</a></h2>
|
<a href="{{ rescue_organization.get_absolute_url }}"> {{ rescue_organization.name }}
|
||||||
|
</a>
|
||||||
|
</h2>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
@@ -16,10 +18,10 @@
|
|||||||
{{ rescue_organization.location_string }}
|
{{ rescue_organization.location_string }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="block content">
|
{% if rescue_organization.description_short %}
|
||||||
{% if rescue_organization.description_short %}
|
<div class="block content">
|
||||||
{{ rescue_organization.description_short | render_markdown }}
|
{{ rescue_organization.description_short | render_markdown }}
|
||||||
{% endif %}
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Reference in New Issue
Block a user