mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-31 21:12:51 +09:00
Almost done issue label #200
This commit is contained in:
@ -32,9 +32,8 @@ func Home(ctx *middleware.Context) {
|
||||
}
|
||||
|
||||
for _, repo := range repos {
|
||||
repo.Owner, err = models.GetUserById(repo.OwnerId)
|
||||
if err != nil {
|
||||
ctx.Handle(500, "dashboard.Home(GetUserById)", err)
|
||||
if err = repo.GetOwner(); err != nil {
|
||||
ctx.Handle(500, "dashboard.Home(GetOwner)", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
@ -43,12 +42,6 @@ func Home(ctx *middleware.Context) {
|
||||
ctx.HTML(200, "home")
|
||||
}
|
||||
|
||||
func Help(ctx *middleware.Context) {
|
||||
ctx.Data["PageIsHelp"] = true
|
||||
ctx.Data["Title"] = "Help"
|
||||
ctx.HTML(200, "help")
|
||||
}
|
||||
|
||||
func NotFound(ctx *middleware.Context) {
|
||||
ctx.Data["PageIsNotFound"] = true
|
||||
ctx.Data["Title"] = "Page Not Found"
|
||||
|
Reference in New Issue
Block a user