|
|
|
@ -187,8 +187,22 @@ |
|
|
|
|
{{end}} |
|
|
|
|
{{else if and .PageIsComparePull (gt .CommitCount 0)}} |
|
|
|
|
{{if .HasPullRequest}} |
|
|
|
|
<div class="ui segment"> |
|
|
|
|
{{.i18n.Tr "repo.pulls.has_pull_request" (Escape $.RepoLink) (Escape $.RepoRelPath) .PullRequest.Index | Safe}} |
|
|
|
|
<div class="ui segment grid title"> |
|
|
|
|
<div class="twelve wide column issue-title"> |
|
|
|
|
{{.i18n.Tr "repo.pulls.has_pull_request" (Escape $.RepoLink) (Escape $.RepoRelPath) .PullRequest.Index | Safe}} |
|
|
|
|
<h1> |
|
|
|
|
<span id="issue-title">{{RenderIssueTitle .PullRequest.Issue.Title $.RepoLink $.Repository.ComposeMetas}}</span> |
|
|
|
|
<span class="index">#{{.PullRequest.Issue.Index}}</span> |
|
|
|
|
</h1> |
|
|
|
|
</div> |
|
|
|
|
<div class="four wide right middle aligned column"> |
|
|
|
|
{{- if .PullRequest.HasMerged -}} |
|
|
|
|
<a href="{{Escape $.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button purple show-form">{{svg "octicon-git-merge" 16}} {{.i18n.Tr "repo.pulls.view"}}</a> |
|
|
|
|
{{else if .Issue.IsClosed}} |
|
|
|
|
<a href="{{Escape $.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button red show-form">{{svg "octicon-issue-closed" 16}} {{.i18n.Tr "repo.pulls.view"}}</a> |
|
|
|
|
{{else}} |
|
|
|
|
<a href="{{Escape $.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button green show-form">{{svg "octicon-git-pull-request" 16}} {{.i18n.Tr "repo.pulls.view"}}</a> |
|
|
|
|
{{end}}</div> |
|
|
|
|
</div> |
|
|
|
|
{{else}} |
|
|
|
|
{{if and $.IsSigned (not .Repository.IsArchived)}} |
|
|
|
|