mirror of
https://github.com/go-gitea/gitea
synced 2024-11-13 21:54:24 +00:00
b04a1d9d63
Signed-off-by: jolheiser <john.olheiser@gmail.com>
15 lines
901 B
Cheetah
15 lines
901 B
Cheetah
<div class="ui segment sub-menu">
|
|
<div class="ui two horizontal center link list">
|
|
{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo)}}
|
|
<div class="item{{if .PageIsCommits}} active{{end}}">
|
|
<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>
|
|
</div>
|
|
{{end}}
|
|
{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo) }}
|
|
<div class="item{{if .PageIsBranches}} active{{end}}">
|
|
<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>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|