Git installation check, show image in single file view, show short SHA1 instead of 40-length string, complete log module
This commit is contained in:
parent
02a81ddb62
commit
5e81383413
16 changed files with 359 additions and 38 deletions
|
@ -54,11 +54,12 @@ func GlobalInit() {
|
|||
log.Trace("Log path: %s", setting.LogRootPath)
|
||||
mailer.NewMailerContext()
|
||||
models.LoadModelsConfig()
|
||||
models.LoadRepoConfig()
|
||||
models.NewRepoContext()
|
||||
NewServices()
|
||||
|
||||
if setting.InstallLock {
|
||||
models.LoadRepoConfig()
|
||||
models.NewRepoContext()
|
||||
|
||||
if err := models.NewEngine(); err != nil {
|
||||
log.Fatal(4, "Fail to initialize ORM engine: %v", err)
|
||||
}
|
||||
|
|
|
@ -32,7 +32,6 @@ func Dashboard(ctx *middleware.Context) {
|
|||
ctx.Handle(500, "home.Dashboard(GetOrganizations)", err)
|
||||
return
|
||||
}
|
||||
ctx.Data["Orgs"] = ctx.User.Orgs
|
||||
ctx.Data["ContextUser"] = ctx.User
|
||||
|
||||
repos, err := models.GetRepositories(ctx.User.Id, true)
|
||||
|
@ -40,9 +39,6 @@ func Dashboard(ctx *middleware.Context) {
|
|||
ctx.Handle(500, "GetRepositories", err)
|
||||
return
|
||||
}
|
||||
for _, repo := range repos {
|
||||
repo.Owner = ctx.User
|
||||
}
|
||||
ctx.Data["Repos"] = repos
|
||||
|
||||
ctx.Data["CollaborativeRepos"], err = models.GetCollaborativeRepos(ctx.User.Name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue