2015-08-08 17:43:14 +03:00
|
|
|
{{template "base/head" .}}
|
2015-09-02 11:08:05 +03:00
|
|
|
<div class="repository compare pull diff">
|
2015-08-08 17:43:14 +03:00
|
|
|
{{template "repo/header" .}}
|
2015-08-09 20:04:23 +03:00
|
|
|
<div class="ui container">
|
2015-08-08 17:43:14 +03:00
|
|
|
<div class="sixteen wide column page grid">
|
|
|
|
<h2 class="ui header">
|
|
|
|
{{.i18n.Tr "repo.pulls.compare_changes"}}
|
|
|
|
<div class="sub header">{{.i18n.Tr "repo.pulls.compare_changes_desc"}}</div>
|
|
|
|
</h2>
|
|
|
|
<div class="ui segment choose branch">
|
|
|
|
<span class="octicon octicon-git-compare"></span>
|
2015-08-09 20:04:23 +03:00
|
|
|
<div class="ui floating filter dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
|
2015-08-08 17:43:14 +03:00
|
|
|
<div class="ui basic small button">
|
2015-09-02 11:08:05 +03:00
|
|
|
<span class="text">{{.i18n.Tr "repo.pulls.compare_base"}}: {{$.BaseBranch}}</span>
|
2015-08-08 17:43:14 +03:00
|
|
|
<i class="dropdown icon"></i>
|
|
|
|
</div>
|
2015-08-31 11:10:28 +03:00
|
|
|
<div class="menu">
|
2015-08-08 17:43:14 +03:00
|
|
|
<div class="ui icon search input">
|
|
|
|
<i class="filter icon"></i>
|
2015-09-02 11:08:05 +03:00
|
|
|
<input name="search" placeholder="{{.i18n.Tr "repo.pulls.filter_branch"}}...">
|
2015-08-08 17:43:14 +03:00
|
|
|
</div>
|
2015-08-31 11:10:28 +03:00
|
|
|
<div class="scrolling menu">
|
2015-08-08 17:43:14 +03:00
|
|
|
{{range .Branches}}
|
2015-08-31 11:10:28 +03:00
|
|
|
<div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-url="{{$.RepoLink}}/compare/{{.}}...{{$.SignedUser.Name}}:{{$.HeadBranch}}">{{.}}</div>
|
2015-08-08 17:43:14 +03:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
...
|
|
|
|
<div class="ui floating filter dropdown">
|
|
|
|
<div class="ui basic small button">
|
2015-09-02 11:08:05 +03:00
|
|
|
<span class="text">{{.i18n.Tr "repo.pulls.compare_compare"}}: {{$.HeadBranch}}</span>
|
2015-08-08 17:43:14 +03:00
|
|
|
<i class="dropdown icon"></i>
|
|
|
|
</div>
|
2015-08-31 11:10:28 +03:00
|
|
|
<div class="menu">
|
2015-08-08 17:43:14 +03:00
|
|
|
<div class="ui icon search input">
|
|
|
|
<i class="filter icon"></i>
|
2015-09-02 11:08:05 +03:00
|
|
|
<input name="search" placeholder="{{.i18n.Tr "repo.pulls.filter_branch"}}...">
|
2015-08-08 17:43:14 +03:00
|
|
|
</div>
|
2015-08-31 11:10:28 +03:00
|
|
|
<div class="scrolling menu">
|
2015-08-08 17:43:14 +03:00
|
|
|
{{range .HeadBranches}}
|
2015-08-31 11:10:28 +03:00
|
|
|
<div class="{{if eq $.HeadBranch .}}selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{$.BaseBranch}}...{{$.SignedUser.Name}}:{{.}}">{{.}}</div>
|
2015-08-08 17:43:14 +03:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-02 02:07:02 +03:00
|
|
|
|
2015-09-02 12:09:12 +03:00
|
|
|
{{if .IsNothingToCompare}}
|
|
|
|
<div class="ui segment">
|
|
|
|
{{.i18n.Tr "repo.pulls.nothing_to_compare"}}
|
|
|
|
</div>
|
|
|
|
{{else if .HasPullRequest}}
|
|
|
|
<div class="ui segment">
|
2015-10-19 02:30:39 +03:00
|
|
|
{{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.Index | Safe}}
|
2015-09-02 12:09:12 +03:00
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{template "repo/issue/new_form" .}}
|
2015-09-02 02:07:02 +03:00
|
|
|
{{template "repo/commits_table" .}}
|
|
|
|
{{template "repo/diff_box" .}}
|
2015-09-02 12:09:12 +03:00
|
|
|
{{end}}
|
2015-08-08 17:43:14 +03:00
|
|
|
</div>
|
2015-08-26 07:39:32 +03:00
|
|
|
|
2015-08-08 17:43:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|