summaryrefslogtreecommitdiffstats
path: root/modules/base/template.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-11 12:14:11 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-11 12:14:11 -0400
commit11f54b142699b59a74b9babc195e712414a3c78a (patch)
treec5b51d2a78c0bb8a75e518d99169e7d0abb15466 /modules/base/template.go
parent65c2c629825c527085e5a0ab09dad9ebbf323aaa (diff)
downloadgitea-11f54b142699b59a74b9babc195e712414a3c78a.tar.gz
gitea-11f54b142699b59a74b9babc195e712414a3c78a.zip
Mirror bug fix
Diffstat (limited to 'modules/base/template.go')
-rw-r--r--modules/base/template.go3
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,