|
|
|
@@ -37,6 +37,12 @@ const ( |
|
|
|
|
|
|
|
// Home render home page |
|
|
|
func Home(ctx *context.Context) { |
|
|
|
ctx.Data["PageIsHome"] = true |
|
|
|
ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled |
|
|
|
ctx.HTML(200, tplHome) |
|
|
|
} |
|
|
|
|
|
|
|
func Dashboard(ctx *context.Context) { |
|
|
|
if ctx.IsSigned { |
|
|
|
if !ctx.User.IsActive && setting.Service.RegisterEmailConfirm { |
|
|
|
ctx.Data["Title"] = ctx.Tr("auth.active_your_account") |
|
|
|
|