pdnew/themes/default/templates/renderable/listing.html

22 lines
533 B
HTML

<div class="{{ content.css_classes }} mode-{{ mode }}">
{% if content.pagination %}
{{ content.pagination.render() }}
{% endif %}
{% if content.items|length == 0 %}
<span class="noitems">No items in this listing.</span>
{% else %}
<ul>
{% for item in content.items %}
<li>{{ item.render(content.mode) }}</li>
{% endfor %}
</ul>
{% endif %}
{% if content.pagination %}
{{ content.pagination.render() }}
{% endif %}
</div>