forked from lza_menace/suchwow
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.
37 lines
847 B
37 lines
847 B
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="container" style="text-align:center;">
|
|
|
|
<div class="title">
|
|
<h3>{% block title %}Latest Posts{% endblock %}</h3>
|
|
</div>
|
|
|
|
{% if posts %}
|
|
<ul style="list-style-type:none;">
|
|
{% for post in posts %}
|
|
<li>#{{ post.id }} - <a href="{{ url_for('post.read', id=post.id) }}">{{ post.title }}</a> - {{ post.submitter }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p>No posts yet!</p>
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if page > 1 %}
|
|
<a href="/?page={{ page - 1 }}" style="padding:1em;">Back</a>
|
|
{% endif %}
|
|
|
|
{% if page <= total_pages and total_pages > 0 %}
|
|
<a href="/?page={{ page + 1 }}" style="padding:1em;">Next</a>
|
|
{% endif %}
|
|
|
|
<hr>
|
|
<a href="{{ url_for('post.top') }}"><button class="btn btn-warning">See Top Posts</button></a>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|