2024-08-01 09:07:49 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2024-08-05 16:09:51 +00:00
|
|
|
{% block indexcurrent %}class="current"{% endblock %}
|
|
|
|
|
2024-08-01 09:07:49 +00:00
|
|
|
{% block content %}
|
2024-08-04 20:14:58 +00:00
|
|
|
{% if form %}
|
|
|
|
<form action="" method="post">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
<p>
|
|
|
|
{{ form.post.label }}
|
|
|
|
{{ form.post(cols=32, rows=4) }}
|
|
|
|
{% for error in form.post.errors %}
|
|
|
|
<span style="color: red;">[{{ error }}]</span>
|
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
<p>{{ form.submit() }}</p>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2024-08-08 15:14:44 +00:00
|
|
|
<table>
|
2024-08-01 09:07:49 +00:00
|
|
|
{% for post in posts %}
|
2024-08-04 20:14:58 +00:00
|
|
|
{% include '_post.html' %}
|
2024-08-01 09:07:49 +00:00
|
|
|
{% endfor %}
|
2024-08-08 15:14:44 +00:00
|
|
|
</table>
|
|
|
|
|
|
|
|
{% include '_postnav.html' %}
|
2024-08-04 20:14:58 +00:00
|
|
|
|
2024-08-01 09:07:49 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|