summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-17 06:02:41 +0100
committerGitHub <noreply@github.com>2020-11-17 07:02:41 +0200
commitb83825253ed803221b3f78162a638d392534cd47 (patch)
treed61323ffc400e88276d7ece2a41c0538be56ff7b /routers
parent0a6ce3eaf19649e2254f9c1ca72288d6c01edbf2 (diff)
downloadgitea-b83825253ed803221b3f78162a638d392534cd47.tar.gz
gitea-b83825253ed803221b3f78162a638d392534cd47.zip
Fix label display on new issues (#13590)
* Fix label display on new issues PR #13570 broke label rendering for new issues and pulls because missed the fact that the code was relying on the DOM elements being toggled by JavaScript. On top of that, the label rendering for new issues and pull was using an outdated template which I consolidated in a new shared template. * remove wrapper element and style tweaks * style tweaks * use shared template for whole label list Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/compare.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/compare.go b/routers/repo/compare.go
index fb6076cbe1..aa4b3191b2 100644
--- a/routers/repo/compare.go
+++ b/routers/repo/compare.go
@@ -184,6 +184,7 @@ func ParseCompareInfo(ctx *context.Context) (*models.User, *models.Repository, *
ctx.Data["BaseIsCommit"] = baseIsCommit
ctx.Data["BaseIsBranch"] = baseIsBranch
ctx.Data["BaseIsTag"] = baseIsTag
+ ctx.Data["IsPull"] = true
// Now we have the repository that represents the base