diff --git a/routers/web/org/home.go b/routers/web/org/home.go index e073093476..c559dd3be4 100644 --- a/routers/web/org/home.go +++ b/routers/web/org/home.go @@ -5,10 +5,10 @@ package org import ( "fmt" + html_template "html/template" "net/http" "path" "strings" - html_template "html/template" "code.gitea.io/gitea/models/db" "code.gitea.io/gitea/models/organization" @@ -131,6 +131,12 @@ func home(ctx *context.Context, viewRepositories bool) { ctx.Data["PageIsViewRepositories"] = true } + err = shared_user.RenderOrgHeader(ctx) + if err != nil { + ctx.ServerError("RenderOrgHeader", err) + return + } + var ( repos []*repo_model.Repository count int64 diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index a8e5d4ebd2..e74cbebd89 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -5,16 +5,18 @@