added showing blogs by tag

This commit is contained in:
2023-02-09 21:53:51 +01:00
parent fcd83c48d7
commit f1287c3fad
9 changed files with 85 additions and 20 deletions

View File

@@ -10,11 +10,13 @@
<table id="posts_list" class="table table-condensed">
{% for entry in last_ten %}
<tr>
<td>{{ entry.created.strftime("%d.%m.%Y") }}</td>
<td>{{ entry.created.strftime("%d %b %y") }}</td>
<td>
<a href="{{ request.route_url('blog', id=entry.id, slug=entry.slug) }}">{{ entry.title }}</a>
</td>
<td>{{ entry.tag }}</td>
<td>
[ <a href="{{ request.route_url('blog_bytag', tag=entry.tag, retour='home') }}">{{ entry.tag }}</a> ]
</td>
{% if entry.status != 'publié' %}
<td><span class="label label-danger">{{ entry.status }}</span></td>
{% else %}
@@ -25,5 +27,5 @@
<p class="text-danger">Aucun post trouvé</p>
{% endfor %}
</table>
{% endblock %}