mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
Style benchmark output
This commit is contained in:
parent
13f827a0ef
commit
3286dfe202
@ -165,8 +165,7 @@ class Benchmark
|
|||||||
$data = self::prepareDataForRendering($what);
|
$data = self::prepareDataForRendering($what);
|
||||||
|
|
||||||
// TODO: Move formatting to CSS file
|
// TODO: Move formatting to CSS file
|
||||||
$style = 'font-family: monospace; font-size: 1.5em; width: 100%';
|
$html = '<table class="benchmark">' . "\n" . '<tr>';
|
||||||
$html = '<table style="' . $style . '">' . "\n" . '<tr>';
|
|
||||||
foreach ($data->columns as & $col) {
|
foreach ($data->columns as & $col) {
|
||||||
$html .= sprintf(
|
$html .= sprintf(
|
||||||
'<td align="%s">%s</td>',
|
'<td align="%s">%s</td>',
|
||||||
|
@ -137,3 +137,13 @@ table.objectlist {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.benchmark {
|
||||||
|
margin: 1em 1% 1em 1%;
|
||||||
|
font-family: monospace;
|
||||||
|
font-size: 1em;
|
||||||
|
width: 96%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard table.benchmark {
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user