Module: check_mk
Branch: master
Commit: 8cbe1b99baeec582c6f7f419e5567c28d9df437f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8cbe1b99baeec5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Sep 6 16:47:47 2011 +0200
Suppress Checkboxes in single layout
---
web/htdocs/views.py | 2 +-
web/plugins/views/layouts.py | 9 +++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 01dcf17..8d64461 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1288,7 +1288,7 @@ def show_view(view, show_heading = False, show_buttons = True,
show_footer = Tru
# Buttons for view options
if 'O' in display_options:
# Link for selecting/deselecting all rows
- if 'C' in display_options and config.may("act") and not
html.do_actions():
+ if 'C' in display_options and config.may("act") and not
html.do_actions() and layout["checkboxes"]:
if show_checkboxes:
addclass = " selected"
title = _("Hide check boxes")
diff --git a/web/plugins/views/layouts.py b/web/plugins/views/layouts.py
index a174a01..d9c4989 100644
--- a/web/plugins/views/layouts.py
+++ b/web/plugins/views/layouts.py
@@ -77,7 +77,8 @@ def render_single_dataset(rows, view, group_painters, painters,
num_columns, _ig
multisite_layouts["dataset"] = {
"title" : _("Single dataset"),
"render" : render_single_dataset,
- "group" : False
+ "group" : False,
+ "checkboxes" : False,
}
# -------------------------------------------------------------------------
@@ -202,7 +203,8 @@ def render_grouped_boxes(rows, view, group_painters, painters,
num_columns, show
multisite_layouts["boxed"] = {
"title" : _("Balanced boxes"),
"render" : render_grouped_boxes,
- "group" : True
+ "group" : True,
+ "checkboxes" : True,
}
# -------------------------------------------------------------------------
@@ -292,7 +294,9 @@ multisite_layouts["tiled"] = {
"title" : _("Tiles"),
"render" : render_tiled,
"group" : True,
+ "checkboxes" : True,
}
+
# -------------------------------------------------------------------------
# _____ _ _
# |_ _|_ _| |__ | | ___
@@ -434,4 +438,5 @@ multisite_layouts["table"] = {
"title" : _("Table"),
"render" : render_grouped_list,
"group" : True,
+ "checkboxes" : True,
}