affcicher le statut privé

This commit is contained in:
2022-10-24 17:27:24 +02:00
parent 4d73885812
commit 0b33c9f697

View File

@@ -193,7 +193,7 @@ def topic(request):
liste += '<td><a href="%s">%s</a></td>' % (request.route_url('blog', id=item.id, slug=item.slug), item.title)
liste += '<td>%s</td>' % item.author
liste += '<td>%s</td>' % item.created.strftime("%d-%m-%Y")
if item.status == 'brouillon':
if item.status != 'publié':
liste += '<td><span class="label label-danger">%s</span></td>' % item.status
liste += '</tr>'
liste += '</table></ul>'