mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Substitute label-important class with label-danger
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user