Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

sub_menu.tmpl 885B

123456789101112131415
  1. <div class="ui segment sub-menu">
  2. <div class="ui two horizontal center link list">
  3. {{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo)}}
  4. <div class="item{{if .PageIsCommits}} active{{end}}">
  5. <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 (TrN .i18n.Lang .CommitsCount "repo.commit" "repo.commits") }}</a>
  6. </div>
  7. {{end}}
  8. {{if and (.Repository.UnitEnabled $.UnitTypeCode) (not .IsBareRepo) }}
  9. <div class="item{{if .PageIsBranches}} active{{end}}">
  10. <a 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. {{end}}
  13. </div>
  14. </div>