added status to blog post

This commit is contained in:
2022-05-18 14:38:30 +02:00
parent 7fa1595f0a
commit 62371401c5
9 changed files with 85 additions and 28 deletions

View File

@@ -27,15 +27,24 @@
</p>
{% endif%}
<ul>
{% for item in items %}
<li>
{{ item.edited.strftime("%d-%m-%Y") }}&nbsp;&nbsp;
<a href="{{ request.route_url('blog', id=item.id, slug=item.slug) }}">
<span class="glyphicon glyphicon-menu-right"></span>&nbsp;&nbsp;{{ item.title }}</a>
</li>
{% endfor %}
</ul>
<table id="users_list" class="table table-condensed">
{% for entry in items %}
<tr>
<td>{{ entry.tag }}</td>
<td>
<a href="{{ request.route_url('blog', id=entry.id, slug=entry.slug) }}">{{ entry.title }}</a>
</td>
<td>{{ entry.author }}</td>
<td>{{ entry.created.strftime("%d-%m-%Y") }}</td>
{% if entry.status == 'brouillon' %}
<td><span class="label label-danger">{{ entry.status }}</span></td>
{% else %}
td> </td>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
{% endblock %}