tab_menu.tmpl 837 B

1234567891011121314151617
  1. <div class="ui top attached pull tabular menu">
  2. <a class="item {{if .PageIsPullConversation}}active{{end}}" href="{{.RepoLink}}/pulls/{{.Issue.Index}}">
  3. <span class="octicon octicon-comment-discussion"></span>
  4. {{$.i18n.Tr "repo.pulls.tab_conversation"}}
  5. <span class="ui label">{{.Issue.NumComments}}</span>
  6. </a>
  7. <a class="item {{if .PageIsPullCommits}}active{{end}}" href="{{.RepoLink}}/pulls/{{.Issue.Index}}/commits">
  8. <span class="octicon octicon-git-commit"></span>
  9. {{$.i18n.Tr "repo.pulls.tab_commits"}}
  10. <span class="ui label">{{.NumCommits}}</span>
  11. </a>
  12. <a class="item {{if .PageIsPullFiles}}active{{end}}" href="{{.RepoLink}}/pulls/{{.Issue.Index}}/files">
  13. <span class="octicon octicon-diff"></span>
  14. {{$.i18n.Tr "repo.pulls.tab_files"}}
  15. <span class="ui label">{{.NumFiles}}</span>
  16. </a>
  17. </div>