From 49d2a9e43c3ef0639de60a5ba5e8e5484f62fada Mon Sep 17 00:00:00 2001 From: Giteabot Date: Fri, 11 Aug 2023 18:38:39 +0800 Subject: [PATCH] Fix incorrect color of selected assignees when create issue (#26324) (#26372) Backport #26324 by @yp05327 Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/75d610b2-3823-4366-be85-c77c9106feff) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/15afc6ac-f5ad-4e24-8983-fea8ace5921f) Co-authored-by: yp05327 <576951401@qq.com> (cherry picked from commit 2bdc38e5921c28994437830561072257c3dca45e) --- templates/repo/issue/new_form.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index b7e90e8e04..262cb013c2 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -170,11 +170,13 @@ {{.locale.Tr "repo.issues.new.no_assignees"}} +
{{range .Assignees}} {{avatar $.Context . 28 "gt-mr-3 gt-vm"}}{{.GetDisplayName}} {{end}} +
{{if and .PageIsComparePull (not (eq .HeadRepo.FullName .BaseCompareRepo.FullName)) .CanWriteToHeadRepo}}