summaryrefslogtreecommitdiffstats
path: root/modules/base/template.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-19 12:50:44 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-19 12:50:44 -0400
commit35d473f04ac79990a35499fbf3c4998170e655e1 (patch)
treefca64b6679336766ffc6965f3f09974c9d3da348 /modules/base/template.go
parentc6e12d256833095d76bbb5755261507ecbdaada9 (diff)
downloadgitea-35d473f04ac79990a35499fbf3c4998170e655e1.tar.gz
gitea-35d473f04ac79990a35499fbf3c4998170e655e1.zip
Finish verify email
Diffstat (limited to 'modules/base/template.go')
-rw-r--r--modules/base/template.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/base/template.go b/modules/base/template.go
index 23d3d27713..5268da6490 100644
--- a/modules/base/template.go
+++ b/modules/base/template.go
@@ -8,6 +8,7 @@ import (
"container/list"
"fmt"
"html/template"
+ "strings"
"time"
)
@@ -54,4 +55,7 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{
"ActionDesc": ActionDesc,
"DateFormat": DateFormat,
"List": List,
+ "Mail2Domain": func(mail string) string {
+ return "mail." + strings.Split(mail, "@")[1]
+ },
}