package repo import ( "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/routers/web/user" "net/http" ) const ( tplCompetences base.TplName = "repo/competences/list" ) func Competences(ctx *context.Context) { ctx.Data["PageIsCompetences"] = true repo := ctx.Data["Repository"] var err error ctx.Data["RenderedCompetences"], err = user.GetRenderedTextField(ctx, repo, "Competences") if err != nil { ctx.ServerError("Render", err) return } ctx.HTML(http.StatusOK, tplCompetences) }