You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

header.go 357B

1234567891011121314
  1. // Copyright 2022 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package user
  4. import (
  5. "code.gitea.io/gitea/modules/context"
  6. "code.gitea.io/gitea/modules/setting"
  7. )
  8. func RenderUserHeader(ctx *context.Context) {
  9. ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled
  10. ctx.Data["ContextUser"] = ctx.ContextUser
  11. }