summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-09-06 20:02:51 +0800
committerLauris BH <lauris@nix.lv>2017-09-06 15:02:51 +0300
commit95c408ffa593efa781442a46394cadb0e401d2da (patch)
tree321045c3ddd98911da47b285b8dae9820812085d /templates
parent4f9a28e1f5ffcc80a5ea586a7ddc2c84b679b76a (diff)
downloadgitea-95c408ffa593efa781442a46394cadb0e401d2da.tar.gz
gitea-95c408ffa593efa781442a46394cadb0e401d2da.zip
hide branch on pull request view or create UI (#2454)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/branch_selector_field.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/issue/branch_selector_field.tmpl b/templates/repo/issue/branch_selector_field.tmpl
index 72b953b666..8758be4ae0 100644
--- a/templates/repo/issue/branch_selector_field.tmpl
+++ b/templates/repo/issue/branch_selector_field.tmpl
@@ -1,3 +1,4 @@
+{{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
<input id="ref_selector" name="ref" type="hidden" value="{{.Issue.Ref}}">
<div class="ui {{if .ReadOnly}}disabled{{end}} floating filter select-branch dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
<div class="ui basic small button">
@@ -39,3 +40,4 @@
</div>
<div class="ui divider"></div>
+{{end}} \ No newline at end of file