|
|
@ -43,31 +43,31 @@
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
<div class="gt-ml-3">
|
|
|
|
<div class="gt-ml-3">
|
|
|
|
{{if .Issue.IsPull}}
|
|
|
|
{{if .Issue.IsPull}}
|
|
|
|
{{$headHref := .HeadTarget|Escape}}
|
|
|
|
{{$headHref := .HeadTarget}}
|
|
|
|
{{if .HeadBranchLink}}
|
|
|
|
{{if .HeadBranchLink}}
|
|
|
|
{{$headHref = printf `<a href="%s">%s</a>` (.HeadBranchLink | Escape) $headHref}}
|
|
|
|
{{$headHref = HTMLFormat `<a href="%s">%s</a>` .HeadBranchLink $headHref}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{$headHref = printf `%s <button class="btn interact-fg" data-tooltip-content="%s" data-clipboard-text="%s">%s</button>` $headHref (ctx.Locale.Tr "copy_branch") (.HeadTarget | Escape) (svg "octicon-copy" 14)}}
|
|
|
|
{{$headHref = HTMLFormat `%s <button class="btn interact-fg" data-tooltip-content="%s" data-clipboard-text="%s">%s</button>` $headHref (ctx.Locale.Tr "copy_branch") .HeadTarget (svg "octicon-copy" 14)}}
|
|
|
|
{{$baseHref := .BaseTarget|Escape}}
|
|
|
|
{{$baseHref := .BaseTarget}}
|
|
|
|
{{if .BaseBranchLink}}
|
|
|
|
{{if .BaseBranchLink}}
|
|
|
|
{{$baseHref = printf `<a href="%s">%s</a>` (.BaseBranchLink | Escape) $baseHref}}
|
|
|
|
{{$baseHref = HTMLFormat `<a href="%s">%s</a>` .BaseBranchLink $baseHref}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{if .Issue.PullRequest.HasMerged}}
|
|
|
|
{{if .Issue.PullRequest.HasMerged}}
|
|
|
|
{{$mergedStr:= TimeSinceUnix .Issue.PullRequest.MergedUnix ctx.Locale}}
|
|
|
|
{{$mergedStr:= TimeSinceUnix .Issue.PullRequest.MergedUnix ctx.Locale}}
|
|
|
|
{{if .Issue.OriginalAuthor}}
|
|
|
|
{{if .Issue.OriginalAuthor}}
|
|
|
|
{{.Issue.OriginalAuthor}}
|
|
|
|
{{.Issue.OriginalAuthor}}
|
|
|
|
<span class="pull-desc">{{ctx.Locale.Tr "repo.pulls.merged_title_desc" .NumCommits ($headHref|Safe) ($baseHref|Safe) $mergedStr}}</span>
|
|
|
|
<span class="pull-desc">{{ctx.Locale.Tr "repo.pulls.merged_title_desc" .NumCommits $headHref $baseHref $mergedStr}}</span>
|
|
|
|
{{else}}
|
|
|
|
{{else}}
|
|
|
|
<a {{if gt .Issue.PullRequest.Merger.ID 0}}href="{{.Issue.PullRequest.Merger.HomeLink}}"{{end}}>{{.Issue.PullRequest.Merger.GetDisplayName}}</a>
|
|
|
|
<a {{if gt .Issue.PullRequest.Merger.ID 0}}href="{{.Issue.PullRequest.Merger.HomeLink}}"{{end}}>{{.Issue.PullRequest.Merger.GetDisplayName}}</a>
|
|
|
|
<span class="pull-desc">{{ctx.Locale.Tr "repo.pulls.merged_title_desc" .NumCommits ($headHref|Safe) ($baseHref|Safe) $mergedStr}}</span>
|
|
|
|
<span class="pull-desc">{{ctx.Locale.Tr "repo.pulls.merged_title_desc" .NumCommits $headHref $baseHref $mergedStr}}</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
{{else}}
|
|
|
|
{{if .Issue.OriginalAuthor}}
|
|
|
|
{{if .Issue.OriginalAuthor}}
|
|
|
|
<span id="pull-desc" class="pull-desc">{{.Issue.OriginalAuthor}} {{ctx.Locale.Tr "repo.pulls.title_desc" .NumCommits ($headHref|Safe) ($baseHref|Safe)}}</span>
|
|
|
|
<span id="pull-desc" class="pull-desc">{{.Issue.OriginalAuthor}} {{ctx.Locale.Tr "repo.pulls.title_desc" .NumCommits $headHref $baseHref}}</span>
|
|
|
|
{{else}}
|
|
|
|
{{else}}
|
|
|
|
<span id="pull-desc" class="pull-desc">
|
|
|
|
<span id="pull-desc" class="pull-desc">
|
|
|
|
<a {{if gt .Issue.Poster.ID 0}}href="{{.Issue.Poster.HomeLink}}"{{end}}>{{.Issue.Poster.GetDisplayName}}</a>
|
|
|
|
<a {{if gt .Issue.Poster.ID 0}}href="{{.Issue.Poster.HomeLink}}"{{end}}>{{.Issue.Poster.GetDisplayName}}</a>
|
|
|
|
{{ctx.Locale.Tr "repo.pulls.title_desc" .NumCommits ($headHref|Safe) ($baseHref|Safe)}}
|
|
|
|
{{ctx.Locale.Tr "repo.pulls.title_desc" .NumCommits $headHref $baseHref}}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
<span id="pull-desc-edit" class="gt-hidden flex-text-block">
|
|
|
|
<span id="pull-desc-edit" class="gt-hidden flex-text-block">
|
|
|
|