view.tmpl 985 B

1234567891011121314151617181920212223242526272829
  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 .PullRequestCtx.Allowed}}disabled{{end}}" href="{{.RepoLink}}/compare/{{.BranchName}}...{{.PullRequestCtx.HeadInfo}}">{{.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. <div>
  24. {{template "repo/issue/view_content" .}}
  25. </div>
  26. {{end}}
  27. </div>
  28. </div>
  29. {{template "base/footer" .}}