Work on blog
rewrite entire blog section
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
|
||||
{% block main %}
|
||||
|
||||
|
||||
<h2> Vos articles de blog </h2>
|
||||
|
||||
{% if nb_articles > 1 %}
|
||||
<h2> Vos {{ nb_articles }} articles de blog </h2>
|
||||
{% endif %}
|
||||
<br/>
|
||||
|
||||
{% for article in list_posts %}
|
||||
<article>
|
||||
@@ -14,9 +15,25 @@
|
||||
<br/>
|
||||
|
||||
<small> Créé le : {{ article.time }} </small> <br/>
|
||||
<small> Modifié le : {{ article.last_updated }}</small>
|
||||
<p> Status : {{ article.status }}</p>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user