diff options
author | Luo Yifei <gdutyifei@163.com> | 2019-02-12 16:37:32 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-02-12 10:37:32 +0200 |
commit | 7884353a04dfcb1e03b4b26801dc90e7d0d67a5b (patch) | |
tree | d7e1f6e7d66c5406bb20c76223df4b789fe15744 /templates | |
parent | baffea1ddb7e4424dbca7f8ab5f1de8cf17c8691 (diff) | |
download | gitea-7884353a04dfcb1e03b4b26801dc90e7d0d67a5b.tar.gz gitea-7884353a04dfcb1e03b4b26801dc90e7d0d67a5b.zip |
Add the Owner Name to differentiate when merging (#3807)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/pulls/compare.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/pulls/compare.tmpl b/templates/repo/pulls/compare.tmpl index 5b71fa5217..d2e00ace36 100644 --- a/templates/repo/pulls/compare.tmpl +++ b/templates/repo/pulls/compare.tmpl @@ -11,7 +11,7 @@ <span class="octicon octicon-git-compare"></span> <div class="ui floating filter dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}"> <div class="ui basic small button"> - <span class="text">{{.i18n.Tr "repo.pulls.compare_base"}}: {{$.BaseBranch}}</span> + <span class="text">{{.i18n.Tr "repo.pulls.compare_base"}}: {{$.BaseName}}:{{$.BaseBranch}}</span> <i class="dropdown icon"></i> </div> <div class="menu"> @@ -21,7 +21,7 @@ </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> + <div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-url="{{$.RepoLink}}/compare/{{EscapePound .}}...{{if not $.PullRequestCtx.SameRepo}}{{$.HeadUser.Name}}:{{end}}{{EscapePound $.HeadBranch}}">{{$.BaseName}}:{{.}}</div> {{end}} </div> </div> @@ -29,7 +29,7 @@ ... <div class="ui floating filter dropdown"> <div class="ui basic small button"> - <span class="text">{{.i18n.Tr "repo.pulls.compare_compare"}}: {{$.HeadBranch}}</span> + <span class="text">{{.i18n.Tr "repo.pulls.compare_compare"}}: {{$.HeadUser.Name}}:{{$.HeadBranch}}</span> <i class="dropdown icon"></i> </div> <div class="menu"> @@ -39,7 +39,7 @@ </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> + <div class="{{if eq $.HeadBranch .}}selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{EscapePound $.BaseBranch}}...{{if not $.PullRequestCtx.SameRepo}}{{$.HeadUser.Name}}:{{end}}{{EscapePound .}}">{{$.HeadUser.Name}}:{{.}}</div> {{end}} </div> </div> |