Module: check_mk
Branch: master
Commit: 04377ad3a0fe22bce9d0e8a627bc1a4d836b67c3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=04377ad3a0fe22…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Tue Jul 24 10:55:59 2018 +0200
5917 FIX Facelift theme: Fixed Logo in Browser tab
Previously the old log still has been used.
Change-Id: I2e3f2198e5e60c23b09b9d5abca71a2b6e1f2ac4
---
.werks/5917 | 10 ++++++++++
cmk/gui/htmllib.py | 2 +-
web/htdocs/themes/facelift/images/favicon.ico | Bin 0 -> 16958 bytes
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/5917 b/.werks/5917
new file mode 100644
index 0000000..0e03707
--- /dev/null
+++ b/.werks/5917
@@ -0,0 +1,10 @@
+Title: Facelift theme: Fixed Logo in Browser tab
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1532422502
+Class: fix
+
+Previously the old logo still has been used.
diff --git a/cmk/gui/htmllib.py b/cmk/gui/htmllib.py
index 81e2051..2b8df33 100644
--- a/cmk/gui/htmllib.py
+++ b/cmk/gui/htmllib.py
@@ -1730,7 +1730,7 @@ class html(HTMLGenerator):
def default_html_headers(self):
self.meta(httpequiv="Content-Type", content="text/html;
charset=utf-8")
self.meta(httpequiv="X-UA-Compatible", content="IE=edge")
- self.write_html(self._render_opening_tag('link', rel="shortcut
icon", href="images/favicon.ico", type_="image/ico",
close_tag=True))
+ self.write_html(self._render_opening_tag('link', rel="shortcut
icon", href=self._detect_themed_image_path("images/favicon.ico"),
type_="image/ico", close_tag=True))
def _head(self, title, javascripts=None, stylesheets=None):
diff --git a/web/htdocs/themes/facelift/images/favicon.ico
b/web/htdocs/themes/facelift/images/favicon.ico
new file mode 100644
index 0000000..448c2fc
Binary files /dev/null and b/web/htdocs/themes/facelift/images/favicon.ico differ