You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tab_menu.tmpl 1.0KB

1234567891011121314151617
  1. <div class="ui top attached pull tabular stackable menu">
  2. <a class="item {{if .PageIsPullConversation}}active{{end}}" href="{{.RepoLink}}/pulls/{{.Issue.Index}}">
  3. {{svg "octicon-comment-discussion" 16}}
  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. {{svg "octicon-git-commit" 16}}
  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. {{svg "octicon-diff" 16}}
  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>