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>
{% endfor %} <ul>
</div> {% for item in items|reverse %}
{% else %} <li{{ item.attributes }}>
{% for item in items %} {{ item.content }}
<div{{ attributes }}>{{ item.content }}</div> </li>
{% endfor %} {% endfor %}
{% endif %} </ul>
{% else %} </div>
<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 %}