diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-19 12:50:44 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-19 12:50:44 -0400 |
commit | 35d473f04ac79990a35499fbf3c4998170e655e1 (patch) | |
tree | fca64b6679336766ffc6965f3f09974c9d3da348 /modules/base/template.go | |
parent | c6e12d256833095d76bbb5755261507ecbdaada9 (diff) | |
download | gitea-35d473f04ac79990a35499fbf3c4998170e655e1.tar.gz gitea-35d473f04ac79990a35499fbf3c4998170e655e1.zip |
Finish verify email
Diffstat (limited to 'modules/base/template.go')
-rw-r--r-- | modules/base/template.go | 4 |
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] + }, } |