aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-08-04 23:14:30 +0900
committerGitHub <noreply@github.com>2023-08-04 14:14:30 +0000
commit30eae5a40c33b5bfc16dc4244631da7f1cae1494 (patch)
tree3b7fc466371eeb1b177865b2a455b5edb8f24f34
parent6151e69d9509c08e25e93743d6b31211371e81d0 (diff)
downloadgitea-30eae5a40c33b5bfc16dc4244631da7f1cae1494.tar.gz
gitea-30eae5a40c33b5bfc16dc4244631da7f1cae1494.zip
Fix incorrect color of selected assignees when create issue (#26324)
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: Giteabot <teabot@gitea.io>
-rw-r--r--templates/repo/issue/new_form.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl
index c5da5b0882..aa68021748 100644
--- a/templates/repo/issue/new_form.tmpl
+++ b/templates/repo/issue/new_form.tmpl
@@ -170,11 +170,13 @@
<span class="no-select item {{if .HasSelectedLabel}}gt-hidden{{end}}">
{{.locale.Tr "repo.issues.new.no_assignees"}}
</span>
+ <div class="selected">
{{range .Assignees}}
<a class="item gt-p-2 muted gt-hidden" id="assignee_{{.ID}}" href="{{$.RepoLink}}/issues?assignee={{.ID}}">
{{avatar $.Context . 28 "gt-mr-3 gt-vm"}}{{.GetDisplayName}}
</a>
{{end}}
+ </div>
</div>
{{if and .PageIsComparePull (not (eq .HeadRepo.FullName .BaseCompareRepo.FullName)) .CanWriteToHeadRepo}}
<div class="divider"></div>