gitea源码

1234567891011121314151617181920
  1. {{$canReadCode := $.Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
  2. <div class="ui fluid vertical menu">
  3. {{/* the default activity page "pulse" could work with any permission: code, issue, pr, release*/}}
  4. <a class="{{if .PageIsPulse}}active {{end}}item" href="{{.RepoLink}}/activity">
  5. {{ctx.Locale.Tr "repo.activity.navbar.pulse"}}
  6. </a>
  7. {{if $canReadCode}}
  8. <a class="{{if .PageIsContributors}}active {{end}}item" href="{{.RepoLink}}/activity/contributors">
  9. {{ctx.Locale.Tr "repo.activity.navbar.contributors"}}
  10. </a>
  11. <a class="{{if .PageIsCodeFrequency}}active{{end}} item" href="{{.RepoLink}}/activity/code-frequency">
  12. {{ctx.Locale.Tr "repo.activity.navbar.code_frequency"}}
  13. </a>
  14. <a class="{{if .PageIsRecentCommits}}active{{end}} item" href="{{.RepoLink}}/activity/recent-commits">
  15. {{ctx.Locale.Tr "repo.activity.navbar.recent_commits"}}
  16. </a>
  17. {{end}}
  18. </div>