diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 9d31952d6..9c13272c0 100755 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -103,6 +103,7 @@ func NewFuncMap() []template.FuncMap { "SafeJS": SafeJS, "Str2html": Str2html, "subOne": subOne, + "addOne": addOne, "TimeSince": timeutil.TimeSince, "TimeSinceUnix": timeutil.TimeSinceUnix, "TimeSinceUnix1": timeutil.TimeSinceUnix1, @@ -470,7 +471,9 @@ func Str2html(raw string) template.HTML { func subOne(length int) int { return length - 1 } - +func addOne(length int64) int { + return length + 1 +} // Escape escapes a HTML string func Escape(raw string) string { return html.EscapeString(raw) diff --git a/templates/custom/task_wait_count.tmpl b/templates/custom/task_wait_count.tmpl index ae13d4afa..1feb25712 100644 --- a/templates/custom/task_wait_count.tmpl +++ b/templates/custom/task_wait_count.tmpl @@ -1,17 +1,19 @@