diff options
author | Unknwon <u@gogs.io> | 2015-11-16 11:16:52 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-16 11:16:52 -0500 |
commit | 29ed7872f807db590d9127cf9f447fb0ac34b40c (patch) | |
tree | f8804f448a80dc74bd4a775398dd54e198beee65 /routers | |
parent | 5dc3dd17049a5c097122c6159aa7a915658c263a (diff) | |
download | gitea-29ed7872f807db590d9127cf9f447fb0ac34b40c.tar.gz gitea-29ed7872f807db590d9127cf9f447fb0ac34b40c.zip |
repo sidebar active class
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/release.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go index e2a8d6f661..f06a831918 100644 --- a/routers/repo/release.go +++ b/routers/repo/release.go @@ -19,6 +19,7 @@ const ( func Releases(ctx *middleware.Context) { ctx.Data["Title"] = ctx.Tr("repo.release.releases") + ctx.Data["PageIsReleaseList"] = true rawTags, err := ctx.Repo.GitRepo.GetTags() if err != nil { @@ -138,12 +139,14 @@ func Releases(ctx *middleware.Context) { func NewRelease(ctx *middleware.Context) { ctx.Data["Title"] = ctx.Tr("repo.release.new_release") + ctx.Data["PageIsReleaseList"] = true ctx.Data["tag_target"] = ctx.Repo.Repository.DefaultBranch ctx.HTML(200, RELEASE_NEW) } func NewReleasePost(ctx *middleware.Context, form auth.NewReleaseForm) { ctx.Data["Title"] = ctx.Tr("repo.release.new_release") + ctx.Data["PageIsReleaseList"] = true if ctx.HasError() { ctx.HTML(200, RELEASE_NEW) @@ -196,6 +199,7 @@ func NewReleasePost(ctx *middleware.Context, form auth.NewReleaseForm) { func EditRelease(ctx *middleware.Context) { ctx.Data["Title"] = ctx.Tr("repo.release.edit_release") + ctx.Data["PageIsReleaseList"] = true ctx.Data["PageIsEditRelease"] = true tagName := ctx.Params(":tagname") @@ -219,6 +223,7 @@ func EditRelease(ctx *middleware.Context) { func EditReleasePost(ctx *middleware.Context, form auth.EditReleaseForm) { ctx.Data["Title"] = ctx.Tr("repo.release.edit_release") + ctx.Data["PageIsReleaseList"] = true ctx.Data["PageIsEditRelease"] = true tagName := ctx.Params(":tagname") |