style changes to nagios_list widget
This commit is contained in:
parent
d7f8f65848
commit
d5fb072c26
@ -265,26 +265,27 @@
|
||||
background-color: #5B7F97;
|
||||
vertical-align: top; }
|
||||
.widget-nagios-list .title {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
font-size: 1em; }
|
||||
color: white;
|
||||
font-size: 1.2em; }
|
||||
.widget-nagios-list .subtitle {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
font-size: 0.8em; }
|
||||
color: white;
|
||||
font-size: 1em; }
|
||||
.widget-nagios-list ol, .widget-nagios-list ul {
|
||||
margin: 0 15px;
|
||||
text-align: left;
|
||||
color: rgba(255, 255, 255, 0.7); }
|
||||
color: white; }
|
||||
.widget-nagios-list ol {
|
||||
nagios-list-style-position: inside; }
|
||||
.widget-nagios-list li {
|
||||
margin-bottom: 5px; }
|
||||
font-size: 1.1em; }
|
||||
.widget-nagios-list .nagios-list-nostyle {
|
||||
nagios-list-style: none; }
|
||||
.widget-nagios-list .label {
|
||||
color: rgba(255, 255, 255, 0.7); }
|
||||
color: white;
|
||||
font-weight: 600; }
|
||||
.widget-nagios-list .value {
|
||||
float: right;
|
||||
margin-left: 12px;
|
||||
margin-left: 10px;
|
||||
font-weight: 600;
|
||||
color: #fff; }
|
||||
.widget-nagios-list .updated-at {
|
||||
|
@ -198,6 +198,16 @@ class NagiosRegionSampler(DashieSampler):
|
||||
warnings.append({'label': region,
|
||||
'value': servicestatus[region]['warning']})
|
||||
|
||||
# (adriant) the following is for easy testing:
|
||||
# regions = ['region1', 'region2', 'region3']
|
||||
|
||||
# criticals = []
|
||||
# warnings = []
|
||||
|
||||
# for region in regions:
|
||||
# criticals.append({'label': region, 'value': random.randint(0, 5)})
|
||||
# warnings.append({'label': region, 'value': random.randint(0, 5)})
|
||||
|
||||
return {'criticals': criticals, 'warnings': warnings}
|
||||
|
||||
|
||||
|
@ -4,8 +4,8 @@
|
||||
$background-color: #5B7F97;
|
||||
$value-color: #fff;
|
||||
|
||||
$title-color: rgba(255, 255, 255, 0.7);
|
||||
$label-color: rgba(255, 255, 255, 0.7);
|
||||
$title-color: rgba(255, 255, 255, 1);
|
||||
$label-color: rgba(255, 255, 255, 1);
|
||||
$moreinfo-color: rgba(255, 255, 255, 0.7);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -18,12 +18,12 @@ $moreinfo-color: rgba(255, 255, 255, 0.7);
|
||||
|
||||
.title {
|
||||
color: $title-color;
|
||||
font-size: 1em;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
color: $title-color;
|
||||
font-size: 0.8em;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
ol, ul {
|
||||
@ -37,7 +37,7 @@ $moreinfo-color: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 5px;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.nagios-list-nostyle {
|
||||
@ -46,11 +46,12 @@ $moreinfo-color: rgba(255, 255, 255, 0.7);
|
||||
|
||||
.label {
|
||||
color: $label-color;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.value {
|
||||
float: right;
|
||||
margin-left: 12px;
|
||||
margin-left: 10px;
|
||||
font-weight: 600;
|
||||
color: $value-color;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user