Module: check_mk
Branch: master
Commit: 870743d4833146d989bd3305448f77b7861ea9ad
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=870743d4833146…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Nov 4 13:50:25 2011 +0100
WATO: move backup/restore to main menu
---
web/htdocs/wato.py | 5 -----
web/plugins/wato/builtin_modules.py | 3 +++
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 7485776..eb17ac5 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -4831,7 +4831,6 @@ def mode_main(phase):
elif phase == "buttons":
changelog_button()
- snapshots_button()
return
elif phase == "action":
@@ -9581,10 +9580,6 @@ def global_buttons():
def home_button():
html.context_button(_("Home"), make_link([("mode",
"main")]), "home")
-def snapshots_button():
- if config.may("wato.snapshots"):
- html.context_button(_("Backup / Restore"),
make_link([("mode", "snapshot")]), "backup")
-
def search_button():
html.context_button(_("Search"), make_link([("mode",
"search")]), "search")
diff --git a/web/plugins/wato/builtin_modules.py b/web/plugins/wato/builtin_modules.py
index c965275..d30f423 100644
--- a/web/plugins/wato/builtin_modules.py
+++ b/web/plugins/wato/builtin_modules.py
@@ -69,5 +69,8 @@ modules = [
( "auditlog", _("Audit Logfile"), "auditlog",
"auditlog",
_("The audit log keeps track of all modifications and actions of the users in
WATO.")),
+
+ ( "snapshot", _("Backup & Restore"), "backup",
"snapshots",
+ _("Make snapshots of your current configuration, download, upload and
restore snapshots.")),
]