From e3be5dd255ca7147ab309ffd2adfe475831e5660 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 28 Mar 2014 17:00:53 +0100 Subject: [PATCH] Restructure timeline layout and styles refs #4190 --- .../views/scripts/timeline/index.phtml | 92 ++++++++----------- public/css/icinga/monitoring-colors.less | 57 ++++++------ 2 files changed, 68 insertions(+), 81 deletions(-) diff --git a/modules/monitoring/application/views/scripts/timeline/index.phtml b/modules/monitoring/application/views/scripts/timeline/index.phtml index c5e57007f..a63a0cfe7 100644 --- a/modules/monitoring/application/views/scripts/timeline/index.phtml +++ b/modules/monitoring/application/views/scripts/timeline/index.phtml @@ -3,6 +3,7 @@ use Icinga\Util\Color; $groupInfo = $timeline->getGroupInfo(); $firstRow = true; + ?>
@@ -18,69 +19,56 @@ $firstRow = true;
- - +
-
- +
+ + + end->format($intervalFormat); ?> + + +
$labelAndColor): ?> -
- - + + + - -
- - end->format($intervalFormat); ?> - - -
calculateCircleWidth($timeInfo[1][$groupName], 2); $extrapolatedCircleWidth = $timeline->getExtrapolatedCircleWidth($timeInfo[1][$groupName], 2); ?> -getColor(), 0.7), - ((float) substr($extrapolatedCircleWidth, 0, -2) / 2) . 'em', - $timeInfo[1][$groupName]->getColor(), - $extrapolatedCircleWidth -); -?> -
+
-
+
-getColor(), - $circleWidth -); -?> - -
- -   + +
-
-
+
diff --git a/public/css/icinga/monitoring-colors.less b/public/css/icinga/monitoring-colors.less index 8f20544cd..2243b3e6c 100644 --- a/public/css/icinga/monitoring-colors.less +++ b/public/css/icinga/monitoring-colors.less @@ -660,45 +660,44 @@ div.timeline-legend { } } -table.timeline { - clear: left; +div.timeline { + div.timeframe { + height: 7em; + margin-bottom: 1em; + clear: left; - th { - width: 8em; - padding-right: 1.5em; + span { + width: 8em; + margin-top: 2.3em; + margin-right: 1.5em; + display: block; + float: left; + text-align: center; - a { - color: black; - font-size: 0.8em; - text-decoration: none; - white-space: nowrap; + a { + color: black; + font-size: 0.8em; + font-weight: bold; + text-decoration: none; + white-space: nowrap; - &:hover { - color: #666; + &:hover { + color: #666; + } } } - } - td { - padding: 0.5em; - - div.circle-box { - width: 6em; - height: 6em; - position: relative; + div.circles { + float: left; div.outer-circle { - width: 100%; - height: 100%; - position: absolute; + // width: inline-style; + // height: inline-style; + margin: 0.5em; + position: relative; + float: left; &.extrapolated { - // width: inline-style; - // height: inline-style; - top: 48%; // Compensate border - left: 48%; // Compensate border - // margin-top: inline-style; - // margin-left: inline-style; border-width: 2px; border-style: dotted; //border-color: inline-style;