flask/flask_website/templates/mailinglist/archive.html

28 lines
977 B
HTML
Raw Normal View History

{% extends "mailinglist/layout.html" %}
{% block title %}Mailinglist Archive{% endblock %}
{% block body %}
<h2>Mailinglist Archive</h2>
<ul class=archive>
{% for thread in threads %}
<li><a href="{{ thread.url }}">{{ thread.title }}</a>
<span class=meta>
by {{ thread.author_name or thread.author_email }}
on {{ thread.date.strftime('%Y-%m-%d @ %H:%M') }}
({{ thread.reply_count }} repl{{ thread.reply_count == 1 and 'y' or 'ies' }})</span>
{% endfor %}
</ul>
<div class=pagination>
{% if page > 1 %}
2010-05-02 16:52:15 +02:00
<a href="{{ url_for('mailinglist.archive', page=page - 1) }}">&laquo; Previous</a>
{% else %}
<span class=disabled>&laquo; Previous</span>
{% endif %}
| <strong>{{ page }}</strong> |
{% if page < page_count %}
2010-05-02 16:52:15 +02:00
<a href="{{ url_for('mailinglist.archive', page=page + 1) }}">Next &raquo;</a>
{% else %}
<span class=disabled>Next &raquo;</span>
{% endif %}
</div>
{% endblock %}