2017-09-05 06:28:11 +00:00
|
|
|
{% extends "base.html" %}
|
2017-09-27 06:43:28 +00:00
|
|
|
{% import 'bootstrap/wtf.html' as wtf %}
|
2017-09-05 06:28:11 +00:00
|
|
|
|
2017-09-27 06:43:28 +00:00
|
|
|
{% block app_content %}
|
2017-09-30 07:21:17 +00:00
|
|
|
<h1>{{ _('Hi, %(username)s!', username=current_user.username) }}</h1>
|
2017-09-18 05:41:40 +00:00
|
|
|
{% if form %}
|
2017-09-27 06:43:28 +00:00
|
|
|
{{ wtf.quick_form(form) }}
|
|
|
|
<br>
|
2017-09-18 05:41:40 +00:00
|
|
|
{% endif %}
|
2017-09-05 06:28:11 +00:00
|
|
|
{% for post in posts %}
|
2017-09-18 05:41:40 +00:00
|
|
|
{% include '_post.html' %}
|
2017-09-05 06:28:11 +00:00
|
|
|
{% endfor %}
|
2017-09-27 06:43:28 +00:00
|
|
|
<nav aria-label="...">
|
|
|
|
<ul class="pager">
|
|
|
|
<li class="previous{% if not prev_url %} disabled{% endif %}">
|
|
|
|
<a href="{{ prev_url or '#' }}">
|
2017-09-30 07:21:17 +00:00
|
|
|
<span aria-hidden="true">←</span> {{ _('Newer posts') }}
|
2017-09-27 06:43:28 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li class="next{% if not next_url %} disabled{% endif %}">
|
|
|
|
<a href="{{ next_url or '#' }}">
|
2017-09-30 07:21:17 +00:00
|
|
|
{{ _('Older posts') }} <span aria-hidden="true">→</span>
|
2017-09-27 06:43:28 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2017-09-05 06:28:11 +00:00
|
|
|
{% endblock %}
|