2017-10-25 18:49:16 -06:00
|
|
|
<div class="ui segment sub-menu">
|
|
|
|
<div class="ui two horizontal center link list">
|
2019-01-17 17:01:04 -07:00
|
|
|
{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo)}}
|
2017-10-25 18:49:16 -06:00
|
|
|
<div class="item{{if .PageIsCommits}} active{{end}}">
|
2019-04-01 18:41:19 -06:00
|
|
|
<a class="ui" 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 (TrN .i18n.Lang .CommitsCount "repo.commit" "repo.commits") }}</a>
|
2017-10-25 18:49:16 -06:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-01-17 17:01:04 -07:00
|
|
|
{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo) }}
|
2017-10-25 18:49:16 -06:00
|
|
|
<div class="item{{if .PageIsBranches}} active{{end}}">
|
2019-04-01 18:41:19 -06:00
|
|
|
<a class="ui" href="{{.RepoLink}}/branches/"><i class="octicon octicon-git-branch"></i> <b>{{.BranchesCount}}</b> {{.i18n.Tr (TrN .i18n.Lang .BranchesCount "repo.branch" "repo.branches") }}</a>
|
2017-10-25 18:49:16 -06:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|