2015-12-09 14:11:41 +08:00
|
|
|
<div class="fitted item choose reference">
|
2016-08-28 16:41:44 +08:00
|
|
|
<div class="ui floating filter dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
|
2016-08-11 20:48:08 +08:00
|
|
|
<div class="ui basic small button">
|
2015-12-09 14:11:41 +08: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 21:27:36 +08:00
|
|
|
<span class="text {{if not .IsViewTag}}black{{end}}">
|
2016-07-16 12:45:13 +08:00
|
|
|
<i class="octicon octicon-git-branch"></i> {{.i18n.Tr "repo.branches"}}
|
2015-12-09 14:11:41 +08: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 16:41:44 +08: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 20:48:08 +08:00
|
|
|
{{end}}
|
2015-12-09 14:11:41 +08:00
|
|
|
</div>
|
2016-01-14 21:27:36 +08:00
|
|
|
<div id="tag-list" class="scrolling menu" {{if not .IsViewTag}}style="display: none"{{end}}>
|
2015-12-09 14:11:41 +08:00
|
|
|
{{range .Tags}}
|
2016-08-28 16:41:44 +08: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 14:11:41 +08:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|