summaryrefslogtreecommitdiffstats
path: root/templates/repo/pulls/compare.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-08 22:43:14 +0800
committerUnknwon <u@gogs.io>2015-08-08 22:43:14 +0800
commitdea3a8c6a42ea7e4921c0e4beee5d4fd0437dbe5 (patch)
tree773b28a72cee24e4a02f3d162de8a37a8f912f59 /templates/repo/pulls/compare.tmpl
parentd015d951bd6959f9585d8a83acfe7bba07b7eaad (diff)
downloadgitea-dea3a8c6a42ea7e4921c0e4beee5d4fd0437dbe5.tar.gz
gitea-dea3a8c6a42ea7e4921c0e4beee5d4fd0437dbe5.zip
WIP: create PR - choose branch
Diffstat (limited to 'templates/repo/pulls/compare.tmpl')
-rw-r--r--templates/repo/pulls/compare.tmpl51
1 files changed, 51 insertions, 0 deletions
diff --git a/templates/repo/pulls/compare.tmpl b/templates/repo/pulls/compare.tmpl
new file mode 100644
index 0000000000..e6ba81d357
--- /dev/null
+++ b/templates/repo/pulls/compare.tmpl
@@ -0,0 +1,51 @@
+{{template "base/head" .}}
+<div class="repository compare pull">
+ {{template "repo/header" .}}
+ <div class="ui middle page grid body">
+ <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>
+ <div class="ui floating filter dropdown">
+ <div class="ui basic small button">
+ <span class="text">base: {{$.BaseBranch}}</span>
+ <i class="dropdown icon"></i>
+ </div>
+ <div class="menu">
+ <div class="ui icon search input">
+ <i class="filter icon"></i>
+ <input name="search" placeholder="Filter branch...">
+ </div>
+ <div class="items">
+ {{range .Branches}}
+ <a class="{{if eq $.BaseBranch .}}active selected{{end}} item" href="{{$.RepoLink}}/compare/{{.}}...{{$.SignedUser.Name}}:{{$.HeadBranch}}">{{.}}</a>
+ {{end}}
+ </div>
+ </div>
+ </div>
+ ...
+ <div class="ui floating filter dropdown">
+ <div class="ui basic small button">
+ <span class="text">compare: {{$.HeadBranch}}</span>
+ <i class="dropdown icon"></i>
+ </div>
+ <div class="menu">
+ <div class="ui icon search input">
+ <i class="filter icon"></i>
+ <input name="search" placeholder="Filter branch...">
+ </div>
+ <div class="items">
+ {{range .HeadBranches}}
+ <a class="{{if eq $.HeadBranch .}}active selected{{end}} item" href="{{$.RepoLink}}/compare/{{$.BaseBranch}}...{{$.SignedUser.Name}}:{{.}}">{{.}}</a>
+ {{end}}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+{{template "base/footer" .}} \ No newline at end of file