only add wrapper when needed
This commit is contained in:
parent
03342fde2d
commit
ce22ac69cf
1 changed files with 41 additions and 40 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{% load markup %}
|
{% load markup %}
|
||||||
|
|
||||||
{% for update in updates %}
|
{% for update in updates %}
|
||||||
<div class="{{ wrapper_classes }}">
|
{% if wrapper_classes %}<div class="{{ wrapper_classes }}">{% endif %}
|
||||||
<div class="box-card border-blue shadow-blue" id="update-{{ update.pk }}">
|
<div class="box-card border-blue shadow-blue" id="update-{{ update.pk }}">
|
||||||
<div>
|
<div>
|
||||||
<a href="{{ update.get_absolute_url }}" class="text-body text-decoration-none">
|
<a href="{{ update.get_absolute_url }}" class="text-body text-decoration-none">
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
{{ update.content|markdown }}
|
{{ update.content|markdown }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
{% if update.url or update.foirequest %}
|
{% if update.url or update.foirequest %}
|
||||||
<div class="p-3 p-md-4 {% if update.content %}box-card-links{% else %}d-flex mt-auto{% endif %}">
|
<div class="p-3 p-md-4 {% if update.content %}box-card-links{% else %}d-flex mt-auto{% endif %}">
|
||||||
{% if update.url %}
|
{% if update.url %}
|
||||||
|
|
@ -50,4 +50,5 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% if wrapper_classes %}</div>{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue