From 757f360949989214a9161f17a82aedf2b647457a Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 19 Mar 2014 13:14:56 -0400 Subject: Render data in commit list page --- modules/base/template.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') 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] + }, } -- cgit v1.2.3