mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-06 08:46:27 +00:00
In progress of name template name constant
This commit is contained in:
@@ -6,11 +6,16 @@ package routers
|
||||
|
||||
import (
|
||||
"github.com/gogits/gogs/models"
|
||||
"github.com/gogits/gogs/modules/base"
|
||||
"github.com/gogits/gogs/modules/middleware"
|
||||
"github.com/gogits/gogs/modules/setting"
|
||||
"github.com/gogits/gogs/routers/user"
|
||||
)
|
||||
|
||||
const (
|
||||
HOME base.TplName = "home"
|
||||
)
|
||||
|
||||
func Home(ctx *middleware.Context) {
|
||||
if ctx.IsSigned {
|
||||
user.Dashboard(ctx)
|
||||
@@ -40,7 +45,7 @@ func Home(ctx *middleware.Context) {
|
||||
}
|
||||
}
|
||||
ctx.Data["Repos"] = repos
|
||||
ctx.HTML(200, "home")
|
||||
ctx.HTML(200, HOME)
|
||||
}
|
||||
|
||||
func NotFound(ctx *middleware.Context) {
|
||||
|
Reference in New Issue
Block a user