diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-11 12:14:11 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-11 12:14:11 -0400 |
commit | 11f54b142699b59a74b9babc195e712414a3c78a (patch) | |
tree | c5b51d2a78c0bb8a75e518d99169e7d0abb15466 /modules/base/template.go | |
parent | 65c2c629825c527085e5a0ab09dad9ebbf323aaa (diff) | |
download | gitea-11f54b142699b59a74b9babc195e712414a3c78a.tar.gz gitea-11f54b142699b59a74b9babc195e712414a3c78a.zip |
Mirror bug fix
Diffstat (limited to 'modules/base/template.go')
-rw-r--r-- | modules/base/template.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/base/template.go b/modules/base/template.go index 5a42107c45..6241497969 100644 --- a/modules/base/template.go +++ b/modules/base/template.go @@ -67,6 +67,9 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{ "TimeSince": TimeSince, "FileSize": FileSize, "Subtract": Subtract, + "Add": func(a, b int) int { + return a + b + }, "ActionIcon": ActionIcon, "ActionDesc": ActionDesc, "DateFormat": DateFormat, |