gitea源码

1234567891011121314151617181920
  1. {{if and (not .HideRepoInfo) (not .IsBlame)}}
  2. <div class="ui segments repository-summary tw-my-0">
  3. <div class="ui segment sub-menu repository-menu">
  4. {{if and (.Permission.CanRead ctx.Consts.RepoUnitTypeCode) (not .IsEmptyRepo)}}
  5. <a class="item muted {{if .PageIsCommits}}active{{end}}" href="{{.RepoLink}}/commits/{{.RefFullName.RefWebLinkPath}}">
  6. {{svg "octicon-history"}} <b>{{ctx.Locale.PrettyNumber .CommitsCount}}</b> {{ctx.Locale.TrN .CommitsCount "repo.commit" "repo.commits"}}
  7. </a>
  8. <a class="item muted {{if .PageIsBranches}}active{{end}}" href="{{.RepoLink}}/branches">
  9. {{svg "octicon-git-branch"}} <b>{{ctx.Locale.PrettyNumber .BranchesCount}}</b> {{ctx.Locale.TrN .BranchesCount "repo.branch" "repo.branches"}}
  10. </a>
  11. {{if $.Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
  12. <a class="item muted {{if .PageIsTagList}}active{{end}}" href="{{.RepoLink}}/tags">
  13. {{svg "octicon-tag"}} <b>{{ctx.Locale.PrettyNumber .NumTags}}</b> {{ctx.Locale.TrN .NumTags "repo.tag" "repo.tags"}}
  14. </a>
  15. {{end}}
  16. {{end}}
  17. </div>
  18. </div>
  19. {{end}}