diff options
author | a1012112796 <1012112796@qq.com> | 2021-01-01 02:32:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 13:32:11 -0500 |
commit | b003116fcaf6c1501eb210f7cda83e8f64cbc608 (patch) | |
tree | d2c3bc8f90249501804f47d6ed9ee49dd7c0dc44 /templates/repo/issue/branch_selector_field.tmpl | |
parent | ef825bd242e9f8615007dbd7ddaaa81386ea1048 (diff) | |
download | gitea-b003116fcaf6c1501eb210f7cda83e8f64cbc608.tar.gz gitea-b003116fcaf6c1501eb210f7cda83e8f64cbc608.zip |
fix branch selector on new issue page (#14194)
fix #14185
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/repo/issue/branch_selector_field.tmpl')
-rw-r--r-- | templates/repo/issue/branch_selector_field.tmpl | 4 |
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 4d9137fe72..7ca18508d9 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}} |