Converted app into a package
This commit is contained in:
parent
ef7818e10e
commit
904fe68d51
22 changed files with 49 additions and 35 deletions
27
flask_website/templates/mailinglist/archive.html
Normal file
27
flask_website/templates/mailinglist/archive.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{% 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 %}
|
||||
<a href="{{ url_for('mailinglist.archive', page=page - 1) }}">« Previous</a>
|
||||
{% else %}
|
||||
<span class=disabled>« Previous</span>
|
||||
{% endif %}
|
||||
| <strong>{{ page }}</strong> |
|
||||
{% if page < page_count %}
|
||||
<a href="{{ url_for('mailinglist.archive', page=page + 1) }}">Next »</a>
|
||||
{% else %}
|
||||
<span class=disabled>Next »</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue