From 08ab0befcd347c74037bcadca0f009ebd4f09704 Mon Sep 17 00:00:00 2001
From: Eric Lippmann
Date: Thu, 1 Oct 2015 16:31:25 +0200
Subject: [PATCH] CSS: compat.less and monitoring detail
refs #5543
---
.../UsergroupbackendController.php | 2 +-
library/Icinga/Web/StyleSheet.php | 3 +-
.../show/components/acknowledgement.phtml | 2 +-
.../scripts/show/components/downtime.phtml | 26 +++++++-------
.../views/scripts/show/components/flags.phtml | 6 ++--
.../scripts/show/components/perfdata.phtml | 4 ++-
modules/monitoring/public/css/module.less | 7 ++++
public/css/icinga/compat.less | 35 +++++++++++++++++++
public/css/icinga/main.less | 26 +++++++-------
9 files changed, 78 insertions(+), 33 deletions(-)
create mode 100644 public/css/icinga/compat.less
diff --git a/application/controllers/UsergroupbackendController.php b/application/controllers/UsergroupbackendController.php
index 19471ea09..c73604676 100644
--- a/application/controllers/UsergroupbackendController.php
+++ b/application/controllers/UsergroupbackendController.php
@@ -150,7 +150,7 @@ class UsergroupbackendController extends Controller
$tabs = $this->getTabs();
$tabs->add('userbackend', array(
'title' => $this->translate('Configure how users authenticate with and log into Icinga Web 2'),
- 'label' => $this->translate('Authentication'),
+ 'label' => $this->translate('Users'),
'url' => 'config/userbackend'
));
$tabs->add('usergroupbackend', array(
diff --git a/library/Icinga/Web/StyleSheet.php b/library/Icinga/Web/StyleSheet.php
index 2d1cff1f5..f66444785 100644
--- a/library/Icinga/Web/StyleSheet.php
+++ b/library/Icinga/Web/StyleSheet.php
@@ -39,7 +39,8 @@ class StyleSheet
'css/icinga/controls.less',
'css/icinga/dev.less',
// 'css/icinga/logo.less',
- 'css/icinga/spinner.less'
+ 'css/icinga/spinner.less',
+ 'css/icinga/compat.less',
);
public static function compileForPdf()
diff --git a/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml b/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml
index 8086794f8..5582cf084 100644
--- a/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml
@@ -40,7 +40,7 @@ if ($object->acknowledged): ?>
= nl2br($this->createTicketLinks($acknowledgement->getComment()), false) ?>
expires()): ?>
-
+
= sprintf(
$this->translate('Expires %s'),
$this->timeUntil($acknowledgement->getExpirationTime())
diff --git a/modules/monitoring/application/views/scripts/show/components/downtime.phtml b/modules/monitoring/application/views/scripts/show/components/downtime.phtml
index ad1f376f3..489547c6e 100644
--- a/modules/monitoring/application/views/scripts/show/components/downtime.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/downtime.phtml
@@ -47,7 +47,7 @@ if (empty($object->comments) && ! $addLink) {
downtimes)):
echo $addLink;
else: ?>
-
-
+
+
+ = $state ?>
+
-
+
diff --git a/modules/monitoring/application/views/scripts/show/components/flags.phtml b/modules/monitoring/application/views/scripts/show/components/flags.phtml
index 1ecc788b7..98398e4e5 100644
--- a/modules/monitoring/application/views/scripts/show/components/flags.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/flags.phtml
@@ -1,3 +1,3 @@
-
- = $toggleFeaturesForm ?> |
-
+
+ = $toggleFeaturesForm ?>
+
diff --git a/modules/monitoring/application/views/scripts/show/components/perfdata.phtml b/modules/monitoring/application/views/scripts/show/components/perfdata.phtml
index f3cff23cc..dfb6e95ac 100644
--- a/modules/monitoring/application/views/scripts/show/components/perfdata.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/perfdata.phtml
@@ -1,4 +1,6 @@
perfdata): ?>
= $this->translate('Performance data') ?>
-= $this->perfdata($object->perfdata) ?>
+
+ = $this->perfdata($object->perfdata) ?>
+
diff --git a/modules/monitoring/public/css/module.less b/modules/monitoring/public/css/module.less
index 1d7e907d0..576d829de 100644
--- a/modules/monitoring/public/css/module.less
+++ b/modules/monitoring/public/css/module.less
@@ -404,6 +404,13 @@ form.object-features .control-label {
}
}
+.performance-data ul {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+ padding-left: @vertical-padding;
+}
+
//p.pluginoutput {
// width: 100%;
diff --git a/public/css/icinga/compat.less b/public/css/icinga/compat.less
new file mode 100644
index 000000000..82792f12a
--- /dev/null
+++ b/public/css/icinga/compat.less
@@ -0,0 +1,35 @@
+@colorMainLayout: @icinga-blue;
+@colorMainBackground: @body-bg-color;
+@colorMainForeground: @text-color;
+@colorMainLink: @text-color;
+@colorSecondary: @gray-lightest;
+@colorGray: @gray-lightest;
+@colorLinkDefault: @text-color;
+@colorTextDefault: @text-color;
+@colorTextDarkDefault: @text-color;
+@colorOk: @color-ok;
+@colorWarning: #ffaa44;
+@colorWarningHandled: #ffcc66;
+@colorCritical: #ff5566;
+@colorCriticalHandled: #ff99aa;
+@colorUnknown: #aa44ff;
+@colorUnknownHandled: #cc77ff;
+@colorUnreachable: #aa44ff;
+@colorUnreachableHandled: #cc77ff;
+@colorPending: #77aaff;
+@colorInvalid: #999;
+@colorFormNotificationInfo: #77aaff;
+@colorFormNotificationWarning: #ffaa44;
+@colorFormNotificationError: #ff5566;
+@colorPetrol: @icinga-blue;
+
+table.action {
+ .action-table();
+ a {
+ font-weight: normal;
+ }
+}
+
+table.avp {
+ .name-value-table()
+}
diff --git a/public/css/icinga/main.less b/public/css/icinga/main.less
index 75ace3998..0f9a2f515 100644
--- a/public/css/icinga/main.less
+++ b/public/css/icinga/main.less
@@ -103,23 +103,23 @@ dl.feed-list {
dt {
border-bottom: 1px solid @gray-lighter;
-
+ margin-top: @vertical-padding;
+
.icon-cancel {
display: none;
}
+
+ &:hover {
+ background-color: @gray-lightest;
+ .icon-cancel {
+ display: block;
+ }
+ }
+
+ &:first-child {
+ margin-top: 0;
+ }
}
- dt:hover {
- background: #F9F9F9;
- position: relative;
-
- form {
- display: inline;
- }
-
- .icon-cancel {
- display: inline;
- }
- }
}
dl.name-value-list {