Module: check_mk
Branch: master
Commit: b3c491d4ae1dc8dc8bbe1ee6aba7ff51c8b2ad28
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b3c491d4ae1dc8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Nov 21 14:03:39 2011 +0100
Icons with link to page URL at bottom of each page
---
ChangeLog | 1 +
web/htdocs/dashboard.py | 2 +-
web/htdocs/htmllib.py | 7 ++++++-
web/htdocs/images/status_frameurl.png | Bin 0 -> 3154 bytes
web/htdocs/images/status_pageurl.png | Bin 0 -> 3021 bytes
5 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5e16b7b..e582625 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -39,6 +39,7 @@
* Show icon if user has modified a view's filter settings
* New config option debug_livestatus_queries, normal debug
mode does not include this anymore
+ * Icons with link to page URL at bottom of each page
WATO:
* Evolved to full featured monitoring configuration tool!
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index 9763f24..0910be9 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -156,7 +156,7 @@ window.onresize = function () { set_dashboard_size(); }
dashboard_scheduler(1);
""" % (header_height, screen_margin, title_height, dashlet_padding,
refresh_dashlets, name))
- html.footer()
+ html.body_end() # omit regular footer with status icons, etc.
# Create the HTML code for one dashlet. Each dashlet has an id "dashlet_%d",
# where %d is its index (in board["dashlets"]). Javascript uses that id
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 7e68376..b3f7f5a 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -670,7 +670,12 @@ class html:
def render_status_icons(self):
h = ""
for img, tooltip in self.status_icons.items():
- h += '<img class=statusicon src="images/status_%s.png"
title="%s">' % (img, tooltip)
+ h += '<img class=statusicon src="images/status_%s.png"
title="%s">\n' % (img, tooltip)
+ if True: # self.req.method == "GET":
+ h += '<a target="_blank" href="%s"><img
class=statusicon src="images/status_frameurl.png" title="URL to this
frame"></a>\n' % \
+ self.makeuri([])
+ h += '<a target="_blank" href="%s"><img
class=statusicon src="images/status_pageurl.png" title="URL to this page
including sidebar"></a>\n' % \
+ ("index.py?" + urlencode_vars([("start_url",
self.makeuri([]))]))
return h
def show_error(self, msg):
diff --git a/web/htdocs/images/status_frameurl.png
b/web/htdocs/images/status_frameurl.png
new file mode 100644
index 0000000..395aab0
Binary files /dev/null and b/web/htdocs/images/status_frameurl.png differ
diff --git a/web/htdocs/images/status_pageurl.png b/web/htdocs/images/status_pageurl.png
new file mode 100644
index 0000000..a272aba
Binary files /dev/null and b/web/htdocs/images/status_pageurl.png differ