2015-12-09 07:11:41 +01:00
|
|
|
<div class="fitted item choose reference">
|
2016-08-28 10:41:44 +02:00
|
|
|
<div class="ui floating filter dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
|
2016-08-11 14:48:08 +02:00
|
|
|
<div class="ui basic small button">
|
2015-12-09 07:11:41 +01:00
|
|
|
<span class="text">
|
|
|
|
<i class="octicon octicon-git-branch"></i>
|
|
|
|
{{if .IsViewBranch}}{{.i18n.Tr "repo.branch"}}{{else}}{{.i18n.Tr "repo.tree"}}{{end}}:
|
|
|
|
<strong>{{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSha .BranchName}}{{end}}</strong>
|
|
|
|
</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">
|
2016-01-14 14:27:36 +01:00
|
|
|
<span class="text {{if not .IsViewTag}}black{{end}}">
|
2016-07-16 06:45:13 +02:00
|
|
|
<i class="octicon octicon-git-branch"></i> {{.i18n.Tr "repo.branches"}}
|
2015-12-09 07:11:41 +01:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
<a class="reference column" href="#" data-target="#tag-list">
|
|
|
|
<span class="text {{if .IsViewTag}}black{{end}}">
|
|
|
|
<i class="reference tags icon"></i> {{.i18n.Tr "repo.tags"}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="branch-list" class="scrolling menu" {{if .IsViewTag}}style="display: none"{{end}}>
|
|
|
|
{{range .Branches}}
|
2016-08-28 10:41:44 +02:00
|
|
|
<div class="item {{if eq $.BranchName .}}selected{{end}}" data-url="{{$.RepoLink}}/{{if $.PageIsCommits}}commits{{else}}src{{end}}/{{EscapePound .}}{{if $.TreePath}}/{{EscapePound $.TreePath}}{{end}}">{{.}}</div>
|
2016-08-11 14:48:08 +02:00
|
|
|
{{end}}
|
2015-12-09 07:11:41 +01:00
|
|
|
</div>
|
2016-01-14 14:27:36 +01:00
|
|
|
<div id="tag-list" class="scrolling menu" {{if not .IsViewTag}}style="display: none"{{end}}>
|
2015-12-09 07:11:41 +01:00
|
|
|
{{range .Tags}}
|
2016-08-28 10:41:44 +02:00
|
|
|
<div class="item {{if eq $.BranchName .}}selected{{end}}" data-url="{{$.RepoLink}}/{{if $.PageIsCommits}}commits{{else}}src{{end}}/{{EscapePound .}}{{if $.TreePath}}/{{EscapePound $.TreePath}}{{end}}">{{.}}</div>
|
2015-12-09 07:11:41 +01:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|