From b193ea5d3242c1024de9d8c552b3c1dc80890cac Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 10 Dec 2015 12:05:48 +0100 Subject: [PATCH] Fix print styles --- application/layouts/scripts/layout.phtml | 3 +- application/views/scripts/group/list.phtml | 2 +- application/views/scripts/group/show.phtml | 2 +- application/views/scripts/user/list.phtml | 2 +- application/views/scripts/user/show.phtml | 2 +- library/Icinga/Web/StyleSheet.php | 3 +- library/Icinga/Web/Widget/FilterEditor.php | 2 +- .../views/scripts/alertsummary/index.phtml | 2 +- .../views/scripts/list/comments.phtml | 2 +- .../list/components/hostssummary.phtml | 2 +- .../list/components/servicesummary.phtml | 2 +- .../views/scripts/list/downtimes.phtml | 2 +- public/css/icinga/base.less | 6 ---- public/css/icinga/print.less | 31 +++++++++++++++++++ public/css/pdf/pdfprint.less | 26 +++++++++------- 15 files changed, 59 insertions(+), 30 deletions(-) create mode 100644 public/css/icinga/print.less diff --git a/application/layouts/scripts/layout.phtml b/application/layouts/scripts/layout.phtml index b2c14dba0..1a2a24d39 100644 --- a/application/layouts/scripts/layout.phtml +++ b/application/layouts/scripts/layout.phtml @@ -41,13 +41,12 @@ $innerLayoutScript = $this->layout()->innerLayout . '.phtml'; }()); - + -

diff --git a/application/views/scripts/group/list.phtml b/application/views/scripts/group/list.phtml
index 12e1bd51e..cf0645633 100644
--- a/application/views/scripts/group/list.phtml
+++ b/application/views/scripts/group/list.phtml
@@ -4,7 +4,7 @@ use Icinga\Data\Extensible;
 use Icinga\Data\Reducible;
 
 if (! $this->compact): ?>
-
+
sortBox ?> diff --git a/application/views/scripts/group/show.phtml b/application/views/scripts/group/show.phtml index a460c7ece..0394fd2f5 100644 --- a/application/views/scripts/group/show.phtml +++ b/application/views/scripts/group/show.phtml @@ -23,7 +23,7 @@ if ($this->hasPermission('config/authentication/groups/edit') && $backend instan } ?> -
+
compact): ?> diff --git a/application/views/scripts/user/list.phtml b/application/views/scripts/user/list.phtml index 6ed523198..182e26e87 100644 --- a/application/views/scripts/user/list.phtml +++ b/application/views/scripts/user/list.phtml @@ -4,7 +4,7 @@ use Icinga\Data\Extensible; use Icinga\Data\Reducible; if (! $this->compact): ?> -
+
sortBox ?> diff --git a/application/views/scripts/user/show.phtml b/application/views/scripts/user/show.phtml index 2fc476bed..5aabdd11a 100644 --- a/application/views/scripts/user/show.phtml +++ b/application/views/scripts/user/show.phtml @@ -22,7 +22,7 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc } ?> -
+
compact): ?> diff --git a/library/Icinga/Web/StyleSheet.php b/library/Icinga/Web/StyleSheet.php index ba19cc530..33cca2121 100644 --- a/library/Icinga/Web/StyleSheet.php +++ b/library/Icinga/Web/StyleSheet.php @@ -53,7 +53,8 @@ class StyleSheet 'css/icinga/dev.less', // 'css/icinga/logo.less', 'css/icinga/spinner.less', - 'css/icinga/compat.less' + 'css/icinga/compat.less', + 'css/icinga/print.less' ); /** diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php index 115fb1790..26cea5930 100644 --- a/library/Icinga/Web/Widget/FilterEditor.php +++ b/library/Icinga/Web/Widget/FilterEditor.php @@ -703,7 +703,7 @@ class FilterEditor extends AbstractWidget public function renderSearch() { - $html = '