2017-10-26 00:49:16 +00:00
|
|
|
<div class="ui segment sub-menu">
|
|
|
|
<div class="ui two horizontal center link list">
|
|
|
|
{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo)}}
|
|
|
|
<div class="item{{if .PageIsCommits}} active{{end}}">
|
2017-11-02 00:30:19 +00:00
|
|
|
<a href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{EscapePound .BranchName}}"><i class="octicon octicon-history"></i> <b>{{.CommitsCount}}</b> {{.i18n.Tr "repo.commits"}}</a>
|
2017-10-26 00:49:16 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo) }}
|
|
|
|
<div class="item{{if .PageIsBranches}} active{{end}}">
|
|
|
|
<a href="{{.RepoLink}}/branches/"><i class="octicon octicon-git-branch"></i> <b>{{.BrancheCount}}</b> {{.i18n.Tr "repo.branches"}}</a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|