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