You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
1.0 KiB

  1. <div class="ui segment sub-menu">
  2. <div class="ui two horizontal center link list">
  3. {{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo)}}
  4. <div class="item{{if .PageIsCommits}} active{{end}}">
  5. <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>
  6. </div>
  7. {{end}}
  8. {{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo) }}
  9. <div class="item{{if .PageIsBranches}} active{{end}}">
  10. <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>
  11. </div>
  12. <div class="item">
  13. <a class="ui" href="#"><i class="octicon octicon-database"></i> <b>{{SizeFmt .Repository.Size}}</b></a>
  14. </div>
  15. {{end}}
  16. </div>
  17. </div>