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.

view.tmpl 1.2KB

123456789101112131415161718192021222324252627282930313233
  1. {{template "base/head" .}}
  2. <div role="main" aria-label="{{.Title}}" class="page-content repository view issue pull">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <div class="ui two column grid">
  6. <div class="column">
  7. {{template "repo/issue/navbar" .}}
  8. </div>
  9. {{if and (not .Repository.IsArchived) (not .Issue.IsPull)}}
  10. <div class="column right aligned">
  11. {{if .PageIsIssueList}}
  12. <a class="ui green button" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr "repo.issues.new"}}</a>
  13. {{else}}
  14. <a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{.RepoLink}}/compare/{{.BranchName | PathEscapeSegments}}...{{.PullRequestCtx.HeadInfoSubURL}}">{{.locale.Tr "repo.pulls.new"}}</a>
  15. {{end}}
  16. </div>
  17. {{end}}
  18. </div>
  19. <div class="ui divider"></div>
  20. {{if .Issue.IsPull}}
  21. {{template "repo/issue/view_title" .}}
  22. {{template "repo/pulls/tab_menu" .}}
  23. <div class="ui bottom attached tab pull active" data-tab="request-{{.ID}}">
  24. {{template "repo/issue/view_content" .}}
  25. </div>
  26. {{else}}
  27. <div>
  28. {{template "repo/issue/view_content" .}}
  29. </div>
  30. {{end}}
  31. </div>
  32. </div>
  33. {{template "base/footer" .}}