Skip to content

Commit d7bde08

Browse files
author
cfoe
committed
correction of broken css-class for dashboard warnings + add of state-icon for dashboard warnings + removal of empty <p>-element in dashboard warnings
1 parent d311c58 commit d7bde08

File tree

2 files changed

+55
-35
lines changed

2 files changed

+55
-35
lines changed

interface/web/dashboard/templates/dashboard.htm

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,32 @@ <h1><tmpl_var name="welcome_user"></h1>
44
<div>
55
<tmpl_if name='error'>
66
<div class="systemmonitor-state state-error">
7-
<tmpl_loop name="error">
8-
<p>{tmpl_var name='error_msg'}</p>
9-
</tmpl_loop>
7+
<div class="status"></div>
8+
<div class="statusMsg">
9+
<tmpl_loop name="error">
10+
{tmpl_var name='error_msg'}
11+
</tmpl_loop>
12+
</div>
1013
</div>
1114
</tmpl_if>
1215
<tmpl_if name='warning'>
1316
<div class="systemmonitor-state state-warning">
14-
<tmpl_loop name="warning">
15-
<p>{tmpl_var name='warning_msg'}</p>
16-
</tmpl_loop>
17+
<div class="status"></div>
18+
<div class="statusMsg">
19+
<tmpl_loop name="warning">
20+
{tmpl_var name='warning_msg'}
21+
</tmpl_loop>
22+
</div>
1723
</div>
1824
</tmpl_if>
1925
<tmpl_if name='info'>
2026
<div class="systemmonitor-state state-info">
21-
<tmpl_loop name="info">
22-
<p>{tmpl_var name='info_msg'}</p>
23-
</tmpl_loop>
27+
<div class="status"></div>
28+
<div class="statusMsg">
29+
<tmpl_loop name="info">
30+
{tmpl_var name='info_msg'}
31+
</tmpl_loop>
32+
</div>
2433
</div>
2534
</tmpl_if>
2635
</div>

interface/web/themes/default/css/screen/content_ispc.css

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@
103103
float: left;
104104
}
105105

106-
/* Systemmonitor */
106+
/* Systemmonitor */
107107
.systemmonitor-server,
108-
.systemmonitor-ve {
108+
.systemmonitor-ve,
109+
.systemmonitor-state {
109110
margin: 10px 5px;
110111
font-family: Consolas, "Lucida Console", "Courier New", monospace;
111112
font-size: 0.9em;
@@ -159,40 +160,50 @@
159160
.systemmonitor-server div.icoDevice { background-position: 0 0; }
160161
.systemmonitor-ve div.icoDevice { background-position: -64px 0; }
161162
.systemmonitor-network div.icoDevice { background-position: -128px -0; }
162-
div.statusDevice { float: left; }
163-
164-
p.status {
163+
div.statusDevice, div.statusMsg { float: left; }
164+
165+
div.statusMsg p {
166+
float: left;
167+
padding: 5px;
168+
}
169+
.systemmonitor-state .status {
170+
margin: 5px;
171+
}
172+
.status {
165173
float: right;
166174
width: 32px;
167175
height: 32px;
168176
background: url("../../icons/x32_sprite.png") no-repeat transparent;
169-
}
170-
.state-no_state p.status,
171-
.state-no_state-ve p.status,
172-
.state-unknown p.status,
173-
.state-unknown-ve p.status { background-position: 0 -207px; }
174-
175-
.state-ok p.status,
176-
.state-ok-ve p.status { background-position: 0 -270px; }
177-
178-
.state-info p.status,
179-
.state-info-ve p.status { background-position: 0 -336px; }
180-
181-
.state-warning p.status,
182-
.state-warning-ve p.status { background-position: 0 -143px; }
183-
184-
.state-critical p.status,
185-
.state-critical-ve p.status { background-position: 0 -463px; }
186-
187-
.state-error p.status,
188-
.state-error-ve p.status { background-position: 0 -400px; }
177+
}
178+
div.status {
179+
float: left !important;
180+
}
181+
.state-no_state .status,
182+
.state-no_state-ve .status,
183+
.state-unknown .status,
184+
.state-unknown-ve .status { background-position: 0 -207px; }
185+
186+
.state-ok .status,
187+
.state-ok-ve .status { background-position: 0 -270px; }
188+
189+
.state-info .status,
190+
.state-info-ve .status { background-position: 0 -336px; }
191+
192+
.state-warning .status,
193+
.state-warning-ve .status { background-position: 0 -143px; }
194+
195+
.state-critical .status,
196+
.state-critical-ve .status { background-position: 0 -463px; }
197+
198+
.state-error .status,
199+
.state-error-ve .status { background-position: 0 -400px; }
189200

190201
/* Usage unknown
191202
.systemmonitor-content table {
192203
border: none;
193204
margin-top: 10px;
194205
}
195-
206+
196207
.systemmonitor-content * .online {
197208
border: 1px solid #ffffff;
198209
background-color: #E3FFB8;

0 commit comments

Comments
 (0)