view.tmpl 963 B

123456789101112131415161718192021222324252627
  1. {{template "base/head" .}}
  2. <div class="repository view issue pull">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <div class="navbar">
  6. {{template "repo/issue/navbar" .}}
  7. <div class="ui right">
  8. {{if .PageIsIssueList}}
  9. <a class="ui green button" href="{{.RepoLink}}/issues/new">{{.i18n.Tr "repo.issues.new"}}</a>
  10. {{else}}
  11. <a class="ui green button {{if not .HasForkedRepo}}disabled{{end}}" href="{{.RepoLink}}/compare/{{.BranchName}}...{{.SignedUserName}}:{{.BranchName}}">{{.i18n.Tr "repo.pulls.new"}}</a>
  12. {{end}}
  13. </div>
  14. </div>
  15. <div class="ui divider"></div>
  16. {{if .Issue.IsPull}}
  17. {{template "repo/issue/view_title" .}}
  18. {{template "repo/pulls/tab_menu" .}}
  19. <div class="ui bottom attached tab pull segment active" data-tab="request-{{.ID}}">
  20. {{template "repo/issue/view_content" .}}
  21. </div>
  22. {{else}}
  23. {{template "repo/issue/view_content" .}}
  24. {{end}}
  25. </div>
  26. </div>
  27. {{template "base/footer" .}}