diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-19 13:14:56 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-19 13:14:56 -0400 |
commit | 757f360949989214a9161f17a82aedf2b647457a (patch) | |
tree | 173e02a4f31ea9ebefe653d3b5e54d25d2dee585 /modules | |
parent | 04b0ba6852c7cc5b5512e9005db304c9bdacc045 (diff) | |
download | gitea-757f360949989214a9161f17a82aedf2b647457a.tar.gz gitea-757f360949989214a9161f17a82aedf2b647457a.zip |
Render data in commit list page
Diffstat (limited to 'modules')
-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 5268da6490..e596d1dada 100644 --- a/modules/base/template.go +++ b/modules/base/template.go @@ -58,4 +58,7 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{ "Mail2Domain": func(mail string) string { return "mail." + strings.Split(mail, "@")[1] }, + "SubStr": func(str string, start, length int) string { + return str[start : start+length] + }, } |