show apapiurl in repo settings

This commit is contained in:
Clemens 2024-04-04 08:32:37 +02:00
parent 73cf1e3901
commit 976d79044f
4 changed files with 6 additions and 0 deletions

View file

@ -575,6 +575,7 @@ func RepoAssignment(ctx *Context) context.CancelFunc {
ctx.Data["Title"] = owner.Name + "/" + repo.Name
ctx.Data["Repository"] = repo
ctx.Data["RepositoryAPAPIURL"] = repo.APAPIURL()
ctx.Data["Owner"] = ctx.Repo.Repository.Owner
ctx.Data["IsRepositoryOwner"] = ctx.Repo.IsOwner()
ctx.Data["IsRepositoryAdmin"] = ctx.Repo.IsAdmin()