This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
blarg/resources/views/posts/list.html

32 lines
719 B
HTML
Raw Normal View History

{% extends "../base.html" %}
2013-05-20 17:43:38 -04:00
{% block content %}
{% if (posts is empty) %}
<div>
<p class="text-center">There are no posts.</p>
</div>
{% else %}
2013-05-20 17:43:38 -04:00
{% for post in posts %}
{% include "post.html" %}
2013-05-20 17:43:38 -04:00
{% endfor %}
<ul class="pager">
{% if atlastpage %}
<li class="previous disabled"><a>&larr; Older</a></li>
{% else %}
<li class="previous"><a href="{{ path(concat('/?page=', nextpage)) }}">&larr; Older</a></li>
2013-05-20 17:43:38 -04:00
{% endif %}
{% if atfirstpage %}
<li class="next disabled"><a>Newer &rarr;</a></li>
{% else %}
<li class="next"><a href="{{ path(concat('/?page=', prevpage)) }}">Newer &rarr;</a></li>
2013-05-20 17:43:38 -04:00
{% endif %}
</ul>
{% include "publishmodal.html" %}
{% include "deletemodal.html" %}
{% endif %}
2013-05-20 17:43:38 -04:00
{% endblock %}