You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
623 B
30 lines
623 B
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="container" style="text-align:center;">
|
|
|
|
<div class="title">
|
|
<h3>{% block title %}Latest Submissions{% endblock %}</h3>
|
|
</div>
|
|
|
|
<ul>
|
|
{% for post in posts %}
|
|
<li>#{{ post.id }} - <a href="{{ url_for('post.read', id=post.id) }}">{{ post.title }}</a> - {{ post.submitter }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
|
|
|
|
{% if page > 1 %}
|
|
<a href="/?page={{ page - 1 }}" style="padding:1em;">Back</a>
|
|
{% endif %}
|
|
|
|
{% if not page == total_pages %}
|
|
<a href="/?page={{ page + 1 }}" style="padding:1em;">Next</a>
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|