diff options
author | slene <vslene@gmail.com> | 2014-03-23 20:58:27 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-23 20:58:27 +0800 |
commit | 809a4eab6774c265c8c07313fa9957c274e52aaf (patch) | |
tree | 9f8c1e86554e9bc1199fdcad36e02335ea0ce69d /modules/base | |
parent | 559cd63fc5feace32bb44c695207579609516f15 (diff) | |
parent | 97debac18534e030924654befc6dc1eeb870a38b (diff) |
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/conf.go | 4 | ||||
-rw-r--r-- | modules/base/tool.go | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go index 19f58707..fba05e88 100644 --- a/modules/base/conf.go +++ b/modules/base/conf.go @@ -38,6 +38,8 @@ var ( RunUser string RepoRootPath string + EnableHttpsClone bool + LogInRememberDays int CookieUserName string CookieRememberName string @@ -260,6 +262,8 @@ func NewConfigContext() { SecretKey = Cfg.MustValue("security", "SECRET_KEY") RunUser = Cfg.MustValue("", "RUN_USER") + EnableHttpsClone = Cfg.MustBool("security", "ENABLE_HTTPS_CLONE", false) + LogInRememberDays = Cfg.MustInt("security", "LOGIN_REMEMBER_DAYS") CookieUserName = Cfg.MustValue("security", "COOKIE_USERNAME") CookieRememberName = Cfg.MustValue("security", "COOKIE_REMEMBER_NAME") diff --git a/modules/base/tool.go b/modules/base/tool.go index b48566f5..6d31b052 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -519,7 +519,7 @@ func ActionDesc(act Actioner, avatarLink string) string { buf.WriteString(fmt.Sprintf(TPL_COMMIT_REPO_LI, avatarLink, actUserName, repoName, commit[0], commit[0][:7], commit[1]) + "\n") } if push.Len > 3 { - buf.WriteString(fmt.Sprintf(`<div><a href="/%s/%s/commits">%d other commits >></a></div>`, actUserName, repoName, push.Len)) + buf.WriteString(fmt.Sprintf(`<div><a href="/%s/%s/commits/%s">%d other commits >></a></div>`, actUserName, repoName, branch, push.Len)) } return fmt.Sprintf(TPL_COMMIT_REPO, actUserName, actUserName, actUserName, repoName, branch, branch, actUserName, repoName, actUserName, repoName, buf.String()) |