Module: check_mk
Branch: master
Commit: dd4400e09d9aa3cf3fc7d8ce5d81769ad7f3c399
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dd4400e09d9aa3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 10 15:17:41 2015 +0200
Added icon management to WATO main menu
---
web/htdocs/images/icon_icons.png | Bin 0 -> 4709 bytes
web/htdocs/wato.py | 7 +++++--
web/plugins/wato/builtin_modules.py | 3 +++
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/images/icon_icons.png b/web/htdocs/images/icon_icons.png
new file mode 100644
index 0000000..624d07f
Binary files /dev/null and b/web/htdocs/images/icon_icons.png differ
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index c9f169e..17a4316 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -17610,8 +17610,11 @@ def mode_icons(phase):
return _('Manage Icons')
elif phase == 'buttons':
- back_url = html.var("back", "")
- html.context_button(_("Back"), back_url, "back")
+ back_url = html.var("back")
+ if back_url:
+ html.context_button(_("Back"), back_url, "back")
+ else:
+ home_button()
return
vs_upload = Tuple(
diff --git a/web/plugins/wato/builtin_modules.py b/web/plugins/wato/builtin_modules.py
index ed86dda..7541d51 100644
--- a/web/plugins/wato/builtin_modules.py
+++ b/web/plugins/wato/builtin_modules.py
@@ -77,5 +77,8 @@ modules += [
( "snapshot", _("Backup & Restore"), "backup",
"snapshots",
_("Make snapshots of your configuration, download, upload and restore
snapshots.")),
+ ( "icons", _("Icons"), "icons", "icons",
+ _("Mange your custom icons to be used e.g. for custom actions or
views.")),
+
]