remove paginate and paginate_alchemy

This commit is contained in:
2022-12-08 11:57:40 +01:00
parent 1bced4ee54
commit 85c60cc561
5 changed files with 27 additions and 54 deletions

View File

@@ -8,27 +8,18 @@
</p>
{% endif%}
{% if paginator.items %}
{% for entry in paginator.items %}
<div class="col-xs-10">
{{ entry.created.strftime("%d-%m-%Y") }}&nbsp;&nbsp;
<a href="{{ request.route_url('blog', id=entry.id, slug=entry.slug) }}">
<span class="glyphicon glyphicon-triangle-right"></span>&nbsp;{{ entry.title }}
</a>
</div>
<div class="col-xs-2">
<span class="glyphicon glyphicon-triangle-left"></span>&nbsp;{{ entry.tag }}
</div>
{% endfor %}
<table id="posts_list" class="table table-condensed">
{% for entry in last_ten %}
<tr>
<td>{{ entry.created.strftime("%d.%m.%Y") }}</td>
<td>
<a href="{{ request.route_url('blog', id=entry.id, slug=entry.slug) }}">{{ entry.title }}</a>
</td>
<td>{{ entry.topic }}</td>
<td>{{ entry.tag }}</td>
</td>
</tr>
{% endfor %}
</table>
{{ paginator.pager() |safe }}
{% else %}
<p>No blog entries found.</p>
{% endif %}
{% endblock %}