[icinga-checkins] icinga.org: icinga-core/r1.2: classic ui: add instance hostname to html title #954

git at icinga.org git at icinga.org
Tue Nov 9 08:24:13 CET 2010


Module: icinga-core
Branch: r1.2
Commit: 75cc92155632b5b93edc860eb61c558266ad26ec
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=75cc92155632b5b93edc860eb61c558266ad26ec

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed Nov  3 14:54:00 2010 +0100

classic ui: add instance hostname to html title #954

uses javascript to add the current instance hostname
to page title in the index.html
E.g. this changes the title from "Icinga" to
"Icinga: foobar.at" and makes it easier to access the
correct instance window/tab in browser.

fixes #954

---

 Changelog          |    2 +-
 html/index.html.in |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Changelog b/Changelog
index 8ac62ee..a5a101b 100644
--- a/Changelog
+++ b/Changelog
@@ -5,7 +5,7 @@ Icinga 1.3.x Change Log
 1.3.0 - 16/02/2011
 
 ENHANCEMENTS
-
+* classic ui: add instance hostname to html title #954
 
 FIXES
 * core: base/utils: Refactor my_fcopy() (Andreas Ericsson) #427
diff --git a/html/index.html.in b/html/index.html.in
index b31da51..67c179d 100644
--- a/html/index.html.in
+++ b/html/index.html.in
@@ -5,7 +5,7 @@
 	<meta name="robots" content="noindex, nofollow" />
 	<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />
 </head>
-	<frameset frameborder="0" framespacing="0" rows="55,*">
+	<frameset frameborder="0" framespacing="0" rows="55,*" onLoad='document.title="Icinga: "+window.location.hostname;'>
 		<frame src="top.html" name="top" scrolling="no" />
 		<frameset frameborder="0" framespacing="0" cols="220,*">
 			<frame src="menu.html" name="menu" target="main" scrolling="auto"/>





More information about the icinga-checkins mailing list