|
|
@ -108,6 +108,9 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if and .Issue.PullRequest.HasMerged (not .IsPullBranchDeletable)}}
|
|
|
|
|
|
|
|
{{/* Then the merge box will not be displayed because this page already contains enough information */}}
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
<div class="timeline-item comment merge box">
|
|
|
|
<div class="timeline-item comment merge box">
|
|
|
|
<a class="timeline-avatar text {{if .Issue.PullRequest.HasMerged}}purple
|
|
|
|
<a class="timeline-avatar text {{if .Issue.PullRequest.HasMerged}}purple
|
|
|
|
{{- else if .Issue.IsClosed}}grey
|
|
|
|
{{- else if .Issue.IsClosed}}grey
|
|
|
@ -131,19 +134,21 @@
|
|
|
|
{{$showGeneralMergeForm := false}}
|
|
|
|
{{$showGeneralMergeForm := false}}
|
|
|
|
<div class="ui attached merge-section segment {{if not $.LatestCommitStatus}}no-header{{end}}">
|
|
|
|
<div class="ui attached merge-section segment {{if not $.LatestCommitStatus}}no-header{{end}}">
|
|
|
|
{{if .Issue.PullRequest.HasMerged}}
|
|
|
|
{{if .Issue.PullRequest.HasMerged}}
|
|
|
|
<div class="item item-section text gt-f1">
|
|
|
|
{{if .IsPullBranchDeletable}}
|
|
|
|
<div class="item-section-left">
|
|
|
|
<div class="item item-section text gt-f1">
|
|
|
|
<h3 class="gt-mb-3">{{$.locale.Tr "repo.pulls.merged_success"}}</h3>
|
|
|
|
<div class="item-section-left">
|
|
|
|
<div class="merge-section-info">
|
|
|
|
<h3 class="gt-mb-3">
|
|
|
|
{{$.locale.Tr "repo.pulls.merged_info_text" (printf "<code>%s</code>" (.HeadTarget | Escape)) | Str2html}}
|
|
|
|
{{$.locale.Tr "repo.pulls.merged_success"}}
|
|
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div class="merge-section-info">
|
|
|
|
|
|
|
|
{{$.locale.Tr "repo.pulls.merged_info_text" (printf "<code>%s</code>" (.HeadTarget | Escape)) | Str2html}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{if .IsPullBranchDeletable}}
|
|
|
|
|
|
|
|
<div class="item-section-right">
|
|
|
|
<div class="item-section-right">
|
|
|
|
<button class="delete-button ui button" data-url="{{.DeleteBranchLink}}">{{$.locale.Tr "repo.branch.delete_html"}}</button>
|
|
|
|
<button class="delete-button ui button" data-url="{{.DeleteBranchLink}}">{{$.locale.Tr "repo.branch.delete_html"}}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{else if .Issue.IsClosed}}
|
|
|
|
{{else if .Issue.IsClosed}}
|
|
|
|
<div class="item item-section text gt-f1">
|
|
|
|
<div class="item item-section text gt-f1">
|
|
|
|
<div class="item-section-left">
|
|
|
|
<div class="item-section-left">
|
|
|
@ -485,3 +490,4 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|