1
0
Fork 0
forked from forgejo/forgejo
This commit is contained in:
Unknown 2014-04-08 12:41:33 -04:00
parent 22feddf804
commit 115a349131
9 changed files with 30 additions and 14 deletions

View file

@ -43,6 +43,7 @@ var (
AppName string
AppLogo string
AppUrl string
IsProdMode bool
Domain string
SecretKey string
RunUser string

View file

@ -56,6 +56,9 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{
"AppDomain": func() string {
return Domain
},
"IsProdMode": func() bool {
return IsProdMode
},
"LoadTimes": func(startTime time.Time) string {
return fmt.Sprint(time.Since(startTime).Nanoseconds()/1e6) + "ms"
},