mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
In progress of name template name constant
This commit is contained in:
parent
c280415e0b
commit
9924e65ca1
24 changed files with 104 additions and 60 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue