0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 09:24:07 -05:00
forgejo/templates/repo/pulls/compare.tmpl

67 lines
2.5 KiB
Cheetah
Raw Normal View History

2015-08-08 09:43:14 -05:00
{{template "base/head" .}}
2015-09-02 03:08:05 -05:00
<div class="repository compare pull diff">
2015-08-08 09:43:14 -05:00
{{template "repo/header" .}}
2015-08-09 12:04:23 -05:00
<div class="ui container">
2015-08-08 09:43:14 -05: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>
2015-08-08 09:43:14 -05:00
</h2>
<div class="ui segment choose branch">
<span class="octicon octicon-git-compare"></span>
2015-08-09 12:04:23 -05:00
<div class="ui floating filter dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
2015-08-08 09:43:14 -05:00
<div class="ui basic small button">
<span class="text">{{.i18n.Tr "repo.pulls.compare_base"}}: {{$.BaseBranch}}</span>
<i class="dropdown icon"></i>
2015-08-08 09:43:14 -05:00
</div>
<div class="menu">
<div class="ui icon search input">
<i class="filter icon"></i>
<input name="search" placeholder="{{.i18n.Tr "repo.pulls.filter_branch"}}...">
</div>
<div class="scrolling menu">
{{range .Branches}}
<div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-url="{{$.RepoLink}}/compare/{{EscapePound .}}...{{if not $.PullRequestCtx.SameRepo}}{{$.HeadUser.Name}}:{{end}}{{EscapePound $.HeadBranch}}">{{.}}</div>
{{end}}
</div>
2015-08-08 09:43:14 -05:00
</div>
</div>
...
2015-08-08 09:43:14 -05:00
<div class="ui floating filter dropdown">
<div class="ui basic small button">
<span class="text">{{.i18n.Tr "repo.pulls.compare_compare"}}: {{$.HeadBranch}}</span>
<i class="dropdown icon"></i>
2015-08-08 09:43:14 -05:00
</div>
<div class="menu">
<div class="ui icon search input">
<i class="filter icon"></i>
<input name="search" placeholder="{{.i18n.Tr "repo.pulls.filter_branch"}}...">
</div>
<div class="scrolling menu">
{{range .HeadBranches}}
<div class="{{if eq $.HeadBranch .}}selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{EscapePound $.BaseBranch}}...{{if not $.PullRequestCtx.SameRepo}}{{$.HeadUser.Name}}:{{end}}{{EscapePound .}}">{{.}}</div>
{{end}}
</div>
2015-08-08 09:43:14 -05:00
</div>
</div>
2015-08-08 09:43:14 -05:00
</div>
2015-09-01 18:07:02 -05:00
{{if .IsNothingToCompare}}
<div class="ui segment">
{{.i18n.Tr "repo.pulls.nothing_to_compare"}}
</div>
{{else if .HasPullRequest}}
<div class="ui segment">
{{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.Index | Safe}}
</div>
{{else}}
{{template "repo/issue/new_form" .}}
{{template "repo/commits_table" .}}
2016-08-28 06:31:42 -05:00
{{template "repo/diff/box" .}}
{{end}}
2015-08-08 09:43:14 -05:00
</div>
2015-08-25 23:39:32 -05:00
2015-08-08 09:43:14 -05:00
</div>
</div>
{{template "base/footer" .}}