summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-01-01 22:14:49 +0800
committerGitHub <noreply@github.com>2021-01-01 16:14:49 +0200
commit5568dd64751b93da09ea43885ded7861d556f0b0 (patch)
tree927db7c2f4182b48fbd031929c5a314cfdfa4e70 /templates
parent58c105d4bf962711b084cdedb253cf4a30c54c7d (diff)
downloadgitea-5568dd64751b93da09ea43885ded7861d556f0b0.tar.gz
gitea-5568dd64751b93da09ea43885ded7861d556f0b0.zip
fix branch selector on new issue page (#14194) (#14207)
fix #14185 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/branch_selector_field.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/branch_selector_field.tmpl b/templates/repo/issue/branch_selector_field.tmpl
index b59c57cb56..76759890ce 100644
--- a/templates/repo/issue/branch_selector_field.tmpl
+++ b/templates/repo/issue/branch_selector_field.tmpl
@@ -31,7 +31,7 @@
</div>
</div>
</div>
- <div id="branch-list" class="scrolling menu reference-list-menu">
+ <div id="branch-list" class="scrolling menu reference-list-menu {{if not .Issue}}new-issue{{end}}">
{{if .Issue.Ref}}
<div class="item text small" data-id="" data-id-selector="#ref_selector"><strong><a href="#">{{$.i18n.Tr "repo.clear_ref"}}</a></strong></div>
{{end}}
@@ -39,7 +39,7 @@
<div class="item" data-id="refs/heads/{{.}}" data-name="{{.}}" data-id-selector="#ref_selector">{{.}}</div>
{{end}}
</div>
- <div id="tag-list" class="scrolling menu reference-list-menu" style="display: none">
+ <div id="tag-list" class="scrolling menu reference-list-menu {{if not .Issue}}new-issue{{end}}" style="display: none">
{{if .Issue.Ref}}
<div class="item text small" data-id="" data-id-selector="#ref_selector"><strong><a href="#">{{.i18n.Tr "repo.clear_ref"}}</a></strong></div>
{{end}}