Display events in an unordered list

References #74
This commit is contained in:
Oliver Davies 2020-05-29 02:08:05 +01:00
parent 56f3434c4a
commit eb5b41262f

View file

@ -42,29 +42,16 @@
] ]
%} %}
{% if label_hidden %} <div{{ attributes.addClass('markup') }}>
{% if multiple %} <h2{{ title_attributes.addClass(title_classes) }}>
<div{{ attributes }}> {{ label }}
{% for item in items %} </h2>
<div{{ item.attributes }}>{{ item.content }}</div>
<ul>
{% for item in items|reverse %}
<li{{ item.attributes }}>
{{ item.content }}
</li>
{% endfor %} {% endfor %}
</ul>
</div> </div>
{% else %}
{% for item in items %}
<div{{ attributes }}>{{ item.content }}</div>
{% endfor %}
{% endif %}
{% else %}
<div{{ attributes }}>
<h2{{ title_attributes.addClass(title_classes) }}>{{ label }}</h2>
{% if multiple %}
<div>
{% endif %}
{% for item in items %}
<div{{ item.attributes }}>{{ item.content }}</div>
{% endfor %}
{% if multiple %}
</div>
{% endif %}
</div>
{% endif %}