sidebar.tmpl 1.9 KB

123456789101112131415161718192021222324252627282930
  1. <div id="repo-sidebar" class="right grid-1-6">
  2. <ul class="menu menu-vertical" id="repo-sidebar-nav">
  3. <li>
  4. <a class="radius" href="{{.RepoLink}}/issues"><i class="octicon octicon-issue-opened"></i>{{.i18n.Tr "repo.issues"}}<span class="num right label label-blue label-radius">{{.Repository.NumOpenIssues}}</span></a>
  5. </li>
  6. <!-- <li>
  7. <a class="radius" href="{{.RepoLink}}/pulls"><i class="octicon octicon-git-pull-request"></i>Pull Requests<span class="num right label label-blue label-radius">{{.Repository.NumOpenPulls}}</span></a>
  8. </li> -->
  9. <li class="border-bottom"></li>
  10. <li class="head">{{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSha .BranchName}}{{end}}</li>
  11. <li>
  12. <a class="radius" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}"><i class="octicon octicon-history"></i>{{.i18n.Tr "repo.commits"}} <span class="num right label label-gray label-radius">{{.CommitsCount}}</span></a>
  13. </li>
  14. <!-- <li>
  15. <a class="radius" href="{{.RepoLink}}/branches"><i class="octicon octicon-git-branch"></i>Branches<span class="num right label label-gray label-radius">{{.BrancheCount}}</span></a>
  16. </li> -->
  17. <li>
  18. <a class="radius" href="{{.RepoLink}}/releases"><i class="octicon octicon-tag"></i>{{.i18n.Tr "repo.releases"}} <span class="num right label label-gray label-radius">{{.Repository.NumTags}}</span></a>
  19. </li>
  20. <!-- <li>
  21. <a class="radius" href="#"><i class="octicon octicon-organization"></i>contributors <span class="num right label label-gray label-radius">43</span></a>
  22. </li> -->
  23. {{if .IsRepositoryAdmin}}
  24. <li class="border-bottom"></li>
  25. <li>
  26. <a class="radius" href="{{.RepoLink}}/settings"><i class="octicon octicon-tools"></i>{{.i18n.Tr "repo.settings"}}</a>
  27. </li>
  28. {{end}}
  29. </ul>
  30. </div>