mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 20:32:11 +00:00
Clean code
This commit is contained in:
parent
b3919c577f
commit
f174633b36
8 changed files with 56 additions and 60 deletions
|
@ -10,12 +10,13 @@ import (
|
|||
|
||||
"github.com/gogits/gogs/modules/auth"
|
||||
"github.com/gogits/gogs/modules/base"
|
||||
"github.com/gogits/gogs/modules/middleware"
|
||||
"github.com/gogits/gogs/routers/user"
|
||||
)
|
||||
|
||||
func Home(r render.Render, data base.TmplData, session sessions.Session) {
|
||||
func Home(ctx *middleware.Context, r render.Render, data base.TmplData, session sessions.Session) {
|
||||
if auth.IsSignedIn(session) {
|
||||
user.Dashboard(r, data, session)
|
||||
user.Dashboard(ctx)
|
||||
return
|
||||
}
|
||||
data["PageIsHome"] = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue