Module: check_mk
Branch: master
Commit: fa1eee915434465b086f1b1c6a0c34d0ea96fa79
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa1eee91543446…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 26 08:18:03 2018 +0100
Minor styling cleanups on WATO host list page
Change-Id: Ib166270b48bc2059c7d42310fde2f94971be8a66
---
web/htdocs/wato.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 13a0cd9..a2a6858 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -948,7 +948,8 @@ def show_host_actions(host):
html.icon_button(host.services_url(), msg, image)
if not host.locked():
- if config.user.may("wato.edit_hosts") and
config.user.may("wato.move_hosts"):
+ if config.user.may("wato.edit_hosts") and
config.user.may("wato.move_hosts") \
+ and host.folder().choices_for_moving_host():
show_move_to_folder_action(host)
if config.user.may("wato.manage_hosts"):
@@ -1069,7 +1070,8 @@ def host_bulk_move_to_folder_combo(folder, top):
choices = folder.choices_for_moving_host()
if len(choices):
choices = [("@", _("(select target folder)"))] + choices
- html.button("_bulk_move", _("Move:"))
+ html.button("_bulk_move", _("Move to:"))
+ html.write(" ")
field_name = 'bulk_moveto'
if top:
field_name = '_top_bulk_moveto'
@@ -1078,8 +1080,6 @@ def host_bulk_move_to_folder_combo(folder, top):
html.dropdown(field_name, choices, deflt="@",
onchange = "update_bulk_moveto(this.value)",
class_ = 'bulk_moveto')
- else:
- html.write_text(_("No valid target folder."))
def move_to_imported_folders(host_names_to_move):