Browse Source

hide branch on pull request view or create UI (#2454)

Lunny Xiao 2 years ago
parent
commit
95c408ffa5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      templates/repo/issue/branch_selector_field.tmpl

+ 2 - 0
templates/repo/issue/branch_selector_field.tmpl

@@ -1,3 +1,4 @@
1
+{{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
1 2
 <input id="ref_selector" name="ref" type="hidden" value="{{.Issue.Ref}}">
2 3
 <div class="ui {{if .ReadOnly}}disabled{{end}} floating filter select-branch dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
3 4
 	<div class="ui basic small button">
@@ -39,3 +40,4 @@
39 40
 </div>
40 41
 
41 42
 <div class="ui divider"></div>
43
+{{end}}