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