= $this->translate('Welcome to Icinga Web 2'); ?>
= sprintf(
diff --git a/application/views/scripts/error/error.phtml b/application/views/scripts/error/error.phtml
index 5b3480922..67429573c 100644
--- a/application/views/scripts/error/error.phtml
+++ b/application/views/scripts/error/error.phtml
@@ -1,10 +1,12 @@
+
-= $this->tabs->showOnlyCloseButton() ?>
+ = $tabs->showOnlyCloseButton(); ?>
-
-
= nl2br($this->escape($message)) ?>
-
-
-
= $this->escape($stackTrace) ?>
-
+
+
= nl2br($this->escape($message)); ?>
+
+
+
= $this->escape($stackTrace) ?>
+
+
\ No newline at end of file
diff --git a/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php b/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php
index 7e7a0fd55..2d5563167 100644
--- a/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php
+++ b/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php
@@ -36,6 +36,13 @@ class NavigationItemRenderer
*/
protected $internalLinkTargets;
+ /**
+ * Whether to escape the label
+ *
+ * @var bool
+ */
+ protected $escapeLabel;
+
/**
* Create a new NavigationItemRenderer
*
@@ -126,6 +133,29 @@ class NavigationItemRenderer
return $this->item;
}
+ /**
+ * Set whether to escape the label
+ *
+ * @param bool $state
+ *
+ * @return $this
+ */
+ public function setEscapeLabel($state = true)
+ {
+ $this->escapeLabel = (bool) $state;
+ return $this;
+ }
+
+ /**
+ * Return whether to escape the label
+ *
+ * @return bool
+ */
+ public function getEscapeLabel()
+ {
+ return $this->escapeLabel !== null ? $this->escapeLabel : true;
+ }
+
/**
* Render the given navigation item as HTML anchor
*
@@ -144,7 +174,9 @@ class NavigationItemRenderer
);
}
- $label = $this->view()->escape($item->getLabel());
+ $label = $this->getEscapeLabel()
+ ? $this->view()->escape($item->getLabel())
+ : $item->getLabel();
if (($icon = $item->getIcon()) !== null) {
$label = $this->view()->icon($icon) . $label;
}
diff --git a/library/Icinga/Web/StyleSheet.php b/library/Icinga/Web/StyleSheet.php
index f22e66d33..dd45743fd 100644
--- a/library/Icinga/Web/StyleSheet.php
+++ b/library/Icinga/Web/StyleSheet.php
@@ -28,6 +28,7 @@ class StyleSheet
'css/icinga/pagination.less',
'css/icinga/selection-toolbar.less',
'css/icinga/login.less',
+ 'css/icinga/logo.less',
'css/icinga/controls.less'
);
diff --git a/modules/monitoring/application/views/scripts/show/components/actions.phtml b/modules/monitoring/application/views/scripts/show/components/actions.phtml
index 2e55db68c..bffd949dd 100644
--- a/modules/monitoring/application/views/scripts/show/components/actions.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/actions.phtml
@@ -16,7 +16,11 @@ foreach ($object->getActionUrls() as $i => $link) {
'Action ' . ($i + 1) . $newTabInfo,
array(
'url' => $link,
- 'target' => '_blank'
+ 'target' => '_blank',
+ 'renderer' => array(
+ 'NavigationItemRenderer',
+ 'escape_label' => false
+ )
)
);
}
diff --git a/modules/monitoring/application/views/scripts/show/components/notes.phtml b/modules/monitoring/application/views/scripts/show/components/notes.phtml
index 1b3dafc52..eb8bf2205 100644
--- a/modules/monitoring/application/views/scripts/show/components/notes.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/notes.phtml
@@ -26,7 +26,11 @@ if (! empty($links)) {
$this->escape($link) . $newTabInfo,
array(
'url' => $link,
- 'target' => '_blank'
+ 'target' => '_blank',
+ 'renderer' => array(
+ 'NavigationItemRenderer',
+ 'escape_label' => false
+ )
)
);
}
diff --git a/public/css/icinga/layout-structure.less b/public/css/icinga/layout-structure.less
index 47adbca7c..ee23b5bfc 100644
--- a/public/css/icinga/layout-structure.less
+++ b/public/css/icinga/layout-structure.less
@@ -280,14 +280,7 @@ html {
}
#login {
- .logo .image img {
- width: 70%;
- }
- .form {
- width: 100%;
- margin: auto;
- }
- .form label {
+ .below-logo label {
width: 100%;
margin: 0;
text-align: center;
diff --git a/public/css/icinga/login.less b/public/css/icinga/login.less
index a24265e88..aa69ba549 100644
--- a/public/css/icinga/login.less
+++ b/public/css/icinga/login.less
@@ -4,47 +4,12 @@
width: 100%;
height: 100%;
- .logo {
- background-color: @colorPetrol;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 60%;
- border-bottom: 1px solid #d9d9d9d;
- text-align: center;
- -webkit-box-shadow: 0 3px 7px -3px #000;
- -moz-box-shadow: 0 3px 7px -3px #000;
- box-shadow: 0 3px 7px -3px #000;
- }
-
- .image {
- position: absolute;
- bottom: 1em;
- left: 0px;
- right: 0px;
- text-align: center;
- }
-
.error {
margin-left:auto;
margin-right:auto;
}
- .image img {
- width: 375px;
- }
-
- .form {
- position: absolute;
- font-size: 0.9em;
- top: 45%;
- left: 0;
- bottom: 0;
- right: 0;
- }
-
- .form h1 {
+ .below-logo h1 {
text-align: center;
font-size: 1.5em;
margin-left: 2.3em;
@@ -53,7 +18,7 @@
font-variant: unset;
}
- .form div.element {
+ .below-logo div.element {
margin: 0;
ul.errors {
@@ -61,7 +26,7 @@
}
}
- .form label {
+ .below-logo label {
font-weight: normal;
display: inline-block;
line-height: 2.5em;
diff --git a/public/css/icinga/logo.less b/public/css/icinga/logo.less
new file mode 100644
index 000000000..68fb81619
--- /dev/null
+++ b/public/css/icinga/logo.less
@@ -0,0 +1,47 @@
+/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
+
+.logo {
+ background-color: @colorPetrol;
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 60%;
+ border-bottom: 1px solid #d9d9d9d;
+ text-align: center;
+ -webkit-box-shadow: 0 3px 7px -3px #000;
+ -moz-box-shadow: 0 3px 7px -3px #000;
+ box-shadow: 0 3px 7px -3px #000;
+
+ .image {
+ position: absolute;
+ bottom: 1em;
+ left: 0px;
+ right: 0px;
+ text-align: center;
+
+ img {
+ width: 375px;
+ }
+ }
+}
+
+.below-logo {
+ position: absolute;
+ font-size: 0.9em;
+ top: 45%;
+ left: 0;
+ bottom: 0;
+ right: 0;
+}
+
+#layout.minimal-layout {
+ .logo .image img {
+ width: 70%;
+ }
+
+ .below-logo {
+ width: 100%;
+ margin: auto;
+ }
+}