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.

65 lines
2.4 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. {{template "base/head" .}}
  2. <div class="repository compare pull diff">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <div class="sixteen wide column page grid">
  6. <h2 class="ui header">
  7. {{.i18n.Tr "repo.pulls.compare_changes"}}
  8. <div class="sub header">{{.i18n.Tr "repo.pulls.compare_changes_desc"}}</div>
  9. </h2>
  10. <div class="ui segment choose branch">
  11. <span class="octicon octicon-git-compare"></span>
  12. <div class="ui floating filter dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
  13. <div class="ui basic small button">
  14. <span class="text">{{.i18n.Tr "repo.pulls.compare_base"}}: {{$.BaseBranch}}</span>
  15. <i class="dropdown icon"></i>
  16. </div>
  17. <div class="menu">
  18. <div class="ui icon search input">
  19. <i class="filter icon"></i>
  20. <input name="search" placeholder="{{.i18n.Tr "repo.pulls.filter_branch"}}...">
  21. </div>
  22. <div class="scrolling menu">
  23. {{range .Branches}}
  24. <div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-url="{{$.RepoLink}}/compare/{{.}}...{{$.SignedUser.Name}}:{{$.HeadBranch}}">{{.}}</div>
  25. {{end}}
  26. </div>
  27. </div>
  28. </div>
  29. ...
  30. <div class="ui floating filter dropdown">
  31. <div class="ui basic small button">
  32. <span class="text">{{.i18n.Tr "repo.pulls.compare_compare"}}: {{$.HeadBranch}}</span>
  33. <i class="dropdown icon"></i>
  34. </div>
  35. <div class="menu">
  36. <div class="ui icon search input">
  37. <i class="filter icon"></i>
  38. <input name="search" placeholder="{{.i18n.Tr "repo.pulls.filter_branch"}}...">
  39. </div>
  40. <div class="scrolling menu">
  41. {{range .HeadBranches}}
  42. <div class="{{if eq $.HeadBranch .}}selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{$.BaseBranch}}...{{$.SignedUser.Name}}:{{.}}">{{.}}</div>
  43. {{end}}
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. {{if .IsNothingToCompare}}
  49. <div class="ui segment">
  50. {{.i18n.Tr "repo.pulls.nothing_to_compare"}}
  51. </div>
  52. {{else if .HasPullRequest}}
  53. <div class="ui segment">
  54. {{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.PullIndex | Safe}}
  55. </div>
  56. {{else}}
  57. {{template "repo/issue/new_form" .}}
  58. {{template "repo/commits_table" .}}
  59. {{template "repo/diff_box" .}}
  60. {{end}}
  61. </div>
  62. </div>
  63. </div>
  64. {{template "base/footer" .}}