pywallter/templates/list_articles.html
John Doe a5ba0b90bb Work on blog
rewrite entire blog section
2025-12-13 02:30:50 +01:00

45 lines
1.4 KiB
HTML

{% extends 'up_squelette.html' %}
{% block main %}
{% if nb_articles > 1 %}
<h2> Vos {{ nb_articles }} articles de blog </h2>
{% endif %}
<br/>
{% for article in list_posts %}
<article>
<h3> {{ article.title }} </h3>
<p> {{ article.subtitle }} </p>
<br/>
<small> Créé le : {{ article.time }} </small> <br/>
{% if article.last_updated == "private" %}
<small> Modifié le : {{ article.last_updated }}</small><br/>
{% endif %}
{% if article.status == "private" %}
<small> Status : privé </small>
<small> (L'article n'est pas publié dans le blog général) </small>
{% elif article.status == "private_unified" %}
<small> Status : privé </small>
<small> (L'article est publié dans le blog général) </small>
{% elif article.status == "public" %}
<small> Status : public </small>
<small> (L'article n'est pas publié dans le blog général) </small>
{% elif article.status == "public_unified" %}
<small> Status : public </small>
<small> (L'article est publié dans le blog général) </small>
{% endif %}
<br/>
<a href="{{ url_for('blog.edit', title=article.title) }}"><button type="button"> Editer </button></a>
<a href="{{ url_for('blog.delete', title=article.title) }}"><button type="button">Supprimer</button></a>
<a href="{{ url_for('blog.edit', title=article.title) }}"><button type="button"> Publier </button></a>
</article>
{% endfor %}
{% endblock %}