Module: check_mk
Branch: master
Commit: b5ac9728bf095d9e2a2c5dc3a35557e99ac8c83b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b5ac9728bf095d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Jan 5 13:45:24 2013 +0100
Allow table without title
---
web/htdocs/table.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/table.py b/web/htdocs/table.py
index f710e85..aa3be81 100644
--- a/web/htdocs/table.py
+++ b/web/htdocs/table.py
@@ -29,7 +29,7 @@ mode = None
next_func = None
row_css = None
-def begin(title, **kwargs):
+def begin(title=None, **kwargs):
global table, mode, next_func
if table:
@@ -87,7 +87,8 @@ def end():
global table
finish_previous()
html.unplug()
- html.write("<h3>%s</h3>" % table["title"])
+ if table["title"]:
+ html.write("<h3>%s</h3>" % table["title"])
if table.get("help"):
html.help(table["help"])