user_posts_list.html: add template to list posts

This commit is contained in:
Zankaria 2024-12-18 23:48:07 +01:00
parent ad9916d428
commit 8d9ef728c0

View File

@ -0,0 +1,16 @@
{% if posts|length == 0 %}
<p style="text-align:center">{% trans %}There are no posts.{% endtrans %}</p>
{% else %}
{% for board_posts in posts %}
<fieldset>
<legend>
<a href="?/{{ config.board_path|sprintf(board_posts.board.uri) }}{{ config.file_index }}">
{{ config.board_abbreviation|sprintf(board_posts.board.uri) }}
-
{{ board_posts.board.title|e }}
</a>
</legend>
{{ board_posts.posts|join('<hr>') }}
</fieldset>
{% endfor %}
{% endif %}