Substitute label-important class with label-danger

This commit is contained in:
Maël Solard
2014-08-07 18:38:42 +02:00
parent cd52def9a9
commit 7ff8a6c809
2 changed files with 3 additions and 3 deletions
@@ -109,12 +109,12 @@ def display_requests(user):
tpl = Template("""<ul class="nav pull-right {{ css }}">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="glyphicon glyphicon-bell"></i> <span id="alerts-counter" class="label label-important">{{ nbrequests }}</span>
<i class="glyphicon glyphicon-bell"></i> <span id="alerts-counter" class="label label-danger">{{ nbrequests }}</span>
</a>
<ul class="dropdown-menu">
<li>
<a id="nbrequests" href="{{ url }}">
<span class="label label-important">{{ nbrequests }}</span> {{ label }}
<span class="label label-danger">{{ nbrequests }}</span> {{ label }}
</a>
</li>
</ul>
+1 -1
View File
@@ -51,7 +51,7 @@ class Qtable(tables.Table):
]
def parse_type(self, value):
color = 'important' if value in ['S', 'V'] else 'warning'
color = 'danger' if value in ['S', 'V'] else 'warning'
return '<span class="label label-%s">%s</span>' % (color, value)
def parse_date(self, value):