display item status in red
This commit is contained in:
@@ -139,8 +139,8 @@
|
||||
<a href="{{ request.route_url('blog', id=entry.id, slug='slug') }}">{{ entry.title }}</a>
|
||||
</td>
|
||||
<td>{{ entry.author }}</td>
|
||||
{% if entry.status == 'brouillon' %}
|
||||
<td><span class="label label-danger">{{ entry.status }}</span></td>
|
||||
{% if entry.status != 'publié' %}
|
||||
<td><span class="text-danger">{{ entry.status }}</span></td>
|
||||
{% else %}
|
||||
<td> </td>
|
||||
{% endif %}
|
||||
|
||||
@@ -74,8 +74,8 @@
|
||||
<a href="{{ request.route_url('blog', id=entry.id, slug='slug') }}">{{ entry.title }}</a>
|
||||
</td>
|
||||
<td>{{ entry.tag }}</td>
|
||||
{% if entry.status == 'brouillon' %}
|
||||
<td><span class="label label-danger">{{ entry.status }}</span></td>
|
||||
{% if entry.status != 'publié' %}
|
||||
<td><span class="text-danger">{{ entry.status }}</span></td>
|
||||
{% else %}
|
||||
<td> </td>
|
||||
{% endif %}
|
||||
|
||||
@@ -272,7 +272,7 @@ def topic(request):
|
||||
liste += '<td>%s</td>' % item.author
|
||||
liste += '<td>%s</td>' % item.create_date
|
||||
if item.status != 'publié':
|
||||
liste += '<td><span class="label label-danger">%s</span></td>' % item.status
|
||||
liste += '<td><span class="text-danger">%s</span></td>' % item.status
|
||||
liste += '</tr>'
|
||||
liste += '</tbody></table></div>'
|
||||
else:
|
||||
|
||||
@@ -86,9 +86,6 @@ def settings(request):
|
||||
topic = '_admin'
|
||||
items = get_last_edited(request)
|
||||
|
||||
import pdb;pdb.set_trace()
|
||||
|
||||
|
||||
# informations sur les versions
|
||||
pyramid_version = pkg_resources.get_distribution("pyramid").version
|
||||
markdown_version = pkg_resources.get_distribution("markdown").version
|
||||
|
||||
Reference in New Issue
Block a user