1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-11 05:55:29 +00:00

clone in ssh

This commit is contained in:
slene
2014-03-17 18:13:07 +08:00
parent df1985e1e8
commit 26f9962b6e
6 changed files with 60 additions and 43 deletions

View File

@@ -18,6 +18,7 @@ import (
var (
AppVer string
AppName string
Domain string
Cfg *goconfig.ConfigFile
)
@@ -58,4 +59,5 @@ func init() {
Cfg.BlockMode = false
AppName = Cfg.MustValue("", "APP_NAME")
Domain = Cfg.MustValue("server", "DOMAIN")
}

View File

@@ -19,6 +19,9 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{
"AppVer": func() string {
return AppVer
},
"AppDomain": func() string {
return Domain
},
"AvatarLink": AvatarLink,
"str2html": Str2html,
"TimeSince": TimeSince,