added status to blog post
This commit is contained in:
@@ -27,15 +27,24 @@
|
||||
</p>
|
||||
{% endif%}
|
||||
|
||||
<ul>
|
||||
{% for item in items %}
|
||||
<li>
|
||||
{{ item.edited.strftime("%d-%m-%Y") }}
|
||||
<a href="{{ request.route_url('blog', id=item.id, slug=item.slug) }}">
|
||||
<span class="glyphicon glyphicon-menu-right"></span> {{ 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 %}
|
||||
|
||||
Reference in New Issue
Block a user