|
|
@ -61,13 +61,17 @@
|
|
|
|
{{if .Issue.PullRequest.IsAgitFlow}}
|
|
|
|
{{if .Issue.PullRequest.IsAgitFlow}}
|
|
|
|
{{$headHref = HTMLFormat `%s <a href="%s" target="_blank"><span class="ui label basic tiny" data-tooltip-content="%s">AGit</span></a>` $headHref "https://docs.gitea.com/usage/agit" (ctx.Locale.Tr "repo.pull.agit_documentation")}}
|
|
|
|
{{$headHref = HTMLFormat `%s <a href="%s" target="_blank"><span class="ui label basic tiny" data-tooltip-content="%s">AGit</span></a>` $headHref "https://docs.gitea.com/usage/agit" (ctx.Locale.Tr "repo.pull.agit_documentation")}}
|
|
|
|
{{else}}
|
|
|
|
{{else}}
|
|
|
|
{{$headHref = HTMLFormat `<span data-tooltip-content="%s">%s</span>` (ctx.Locale.Tr "form.target_branch_not_exist") $headHref}}
|
|
|
|
{{$headHref = HTMLFormat `<span class="tw-line-through" data-tooltip-content="%s">%s</span>` (ctx.Locale.Tr "form.target_branch_not_exist") $headHref}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{$baseHref := .BaseTarget}}
|
|
|
|
{{$baseHref := .BaseTarget}}
|
|
|
|
{{if .BaseBranchLink}}
|
|
|
|
{{if .BaseBranchLink}}
|
|
|
|
|
|
|
|
{{if .BaseBranchNotExist}}
|
|
|
|
|
|
|
|
{{$baseHref = HTMLFormat `<span class="tw-line-through" data-tooltip-content="%s">%s</span>` (ctx.Locale.Tr "form.target_branch_not_exist") $baseHref}}
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
{{$baseHref = HTMLFormat `<a href="%s">%s</a>` .BaseBranchLink $baseHref}}
|
|
|
|
{{$baseHref = HTMLFormat `<a href="%s">%s</a>` .BaseBranchLink $baseHref}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
{{if .Issue.PullRequest.HasMerged}}
|
|
|
|
{{if .Issue.PullRequest.HasMerged}}
|
|
|
|
{{$mergedStr:= DateUtils.TimeSince .Issue.PullRequest.MergedUnix}}
|
|
|
|
{{$mergedStr:= DateUtils.TimeSince .Issue.PullRequest.MergedUnix}}
|
|
|
|
{{if .Issue.OriginalAuthor}}
|
|
|
|
{{if .Issue.OriginalAuthor}}
|
|
|
|