minor UI fix and fix ssh race
This commit is contained in:
parent
9c12ed3b6e
commit
7c80eba77f
13 changed files with 33 additions and 10 deletions
|
@ -17,6 +17,8 @@ import (
|
|||
"github.com/gogits/gogs/modules/setting"
|
||||
)
|
||||
|
||||
import "github.com/davecheney/profile"
|
||||
|
||||
const (
|
||||
COMMITS base.TplName = "repo/commits"
|
||||
DIFF base.TplName = "repo/diff"
|
||||
|
@ -43,6 +45,7 @@ func RenderIssueLinks(oldCommits *list.List, repoLink string) *list.List {
|
|||
}
|
||||
|
||||
func Commits(ctx *middleware.Context) {
|
||||
defer profile.Start(profile.CPUProfile).Stop()
|
||||
ctx.Data["PageIsCommits"] = true
|
||||
|
||||
commitsCount, err := ctx.Repo.Commit.CommitsCount()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue