tab_menu.tmpl 1.1 KB

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 {{if not .Issue.NumComments}}gray{{else}}blue{{end}} small 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 {{if not .NumCommits}}gray{{else}}blue{{end}} small 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 {{if not .NumFiles}}gray{{else}}blue{{end}} small label">{{if .NumFiles}}{{.NumFiles}}{{else}}N/A{{end}}</span>
  16. </a>
  17. </div>