Module: check_mk
Branch: master
Commit: 54f3a66892c3f80d1b6937999ec4d8cad8f773ed
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=54f3a66892c3f8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jun 19 11:49:15 2015 +0200
Recurring downtimes now also in 14 and 28 days interval
---
web/plugins/views/commands.py | 6 ++++++
web/plugins/views/painters.py | 2 ++
2 files changed, 8 insertions(+)
diff --git a/web/plugins/views/commands.py b/web/plugins/views/commands.py
index 208a93f..42b7cdd 100644
--- a/web/plugins/views/commands.py
+++ b/web/plugins/views/commands.py
@@ -387,6 +387,10 @@ def command_downtime(cmdtag, spec, row):
title_start = _("schedule a daily recurring")
elif recurring_type == "3":
title_start = _("schedule a weekly recurring")
+ elif recurring_type == "4":
+ title_start = _("schedule a two-weekly recurring")
+ elif recurring_type == "5":
+ title_start = _("schedule a four-weekly recurring")
else:
title_start = _("schedule an immediate")
@@ -590,6 +594,8 @@ def paint_downtime_buttons(what):
( "1", _("hour") ),
( "2", _("day") ),
( "3", _("week") ),
+ ( "4", _("second week") ),
+ ( "5", _("fourth week") ),
], "3")
html.write(_("(This only works when using CMC)"))
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index b29692f..8f0b8f8 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -1867,6 +1867,8 @@ def paint_downtime_recurring(row):
1: _("hourly"),
2: _("daily"),
3: _("weekly"),
+ 4: _("two-weekly"),
+ 5: _("four-weekly"),
999: _("every 5 minutes"),
}.get(r, _("(unknown)"))