Module: check_mk
Branch: master
Commit: f6f02f5041975d5785bef176606d7a5b42f8ee8d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f6f02f5041975d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jan 18 16:51:06 2012 +0100
htmllib: new helper function icon()
---
web/htdocs/htmllib.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 148749f..d6b78d5 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -323,6 +323,10 @@ class html:
(obj_id, style, title, disabled, text, href))
# self.write("<a href=\"%s\"
class=button%s%s>%s</a>" % (href, obj_id, style, text))
+ def icon(self, help, icon):
+ self.write('<img class=icon title="%s"
src="images/icon_%s.png">' % (
+ help, icon))
+
def icon_button(self, url, help, icon):
self.write('<a href="%s">'
'<img class=iconbutton title="%s"
src="images/button_%s_lo.png" '