2017-09-06 14:02:51 +02:00
|
|
|
{{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
|
2017-08-24 14:30:27 +02:00
|
|
|
<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">
|
|
|
|
<span class="text branch-name">{{if .Issue.Ref}}{{.Issue.Ref}}{{else}}{{.i18n.Tr "repo.issues.no_ref"}}{{end}}</span>
|
|
|
|
<i class="dropdown icon"></i>
|
|
|
|
</div>
|
|
|
|
<div class="menu">
|
|
|
|
<div class="ui icon search input">
|
|
|
|
<i class="filter icon"></i>
|
|
|
|
<input name="search" placeholder="{{.i18n.Tr "repo.filter_branch_and_tag"}}...">
|
|
|
|
</div>
|
|
|
|
<div class="header">
|
|
|
|
<div class="ui grid">
|
|
|
|
<div class="two column row">
|
|
|
|
<a class="reference column" href="#" data-target="#branch-list">
|
|
|
|
<span class="text black">
|
2020-02-11 18:02:41 +01:00
|
|
|
{{svg "octicon-git-branch" 16}} {{.i18n.Tr "repo.branches"}}
|
2017-08-24 14:30:27 +02:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
<a class="reference column" href="#" data-target="#tag-list">
|
|
|
|
<span class="text">
|
|
|
|
<i class="reference tags icon"></i> {{.i18n.Tr "repo.tags"}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="branch-list" class="scrolling menu reference-list-menu">
|
|
|
|
{{range .Branches}}
|
|
|
|
<div class="item" data-id="{{.}}" data-id-selector="#ref_selector">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div id="tag-list" class="scrolling menu reference-list-menu" style="display: none">
|
|
|
|
{{range .Tags}}
|
|
|
|
<div class="item" data-id="{{.}}" data-id-selector="#ref_selector">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ui divider"></div>
|
2020-02-11 18:02:41 +01:00
|
|
|
{{end}}
|