tab_menu.tmpl 955 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}}" {{if .NumCommits}}href="{{.RepoLink}}/pulls/{{.Issue.Index}}/commits"{{end}}>
  8. <span class="octicon octicon-git-commit"></span>
  9. {{$.i18n.Tr "repo.pulls.tab_commits"}}
  10. <span class="ui label">{{if .NumCommits}}{{.NumCommits}}{{else}}N/A{{end}}</span>
  11. </a>
  12. <a class="item {{if .PageIsPullFiles}}active{{end}}" {{if .NumFiles}}href="{{.RepoLink}}/pulls/{{.Issue.Index}}/files"{{end}}>
  13. <span class="octicon octicon-diff"></span>
  14. {{$.i18n.Tr "repo.pulls.tab_files"}}
  15. <span class="ui label">{{if .NumFiles}}{{.NumFiles}}{{else}}N/A{{end}}</span>
  16. </a>
  17. </div>