Show divider only when post form is displayed, add post count text.

This commit is contained in:
Xevion
2022-03-30 01:45:44 -05:00
parent 765e786231
commit 2c8d97559d

View File

@@ -10,9 +10,13 @@
{{ render_field(form.text, show_label=False) }}
<input type=submit value="Create Post">
</form>
{% endif %}
<hr style="margin: 1.5em 0">
{% endif %}
{% with post_count = posts|length %}
<span style="display: inline-block; text-align: center; margin: 0.3em; margin-left: 1em;">Showing {{ post_count }} post{{ post_count|pluralize }}.</span>
{% endwith %}
{% for post in posts %}
<div id="post-{{ post.id }}" class="post-box">