mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
Fix incorrect redirection when creating a PR fails (#29537)
This is only a quick fix to make it easier to backport.
After this PR gets merged, I will propose a new PR to fix the FIXME.
<details>

</details>
(cherry picked from commit e650f64d812f5ebeb4a11d2ec20f2376c6d963bc)
This commit is contained in:
parent
5241a45cf8
commit
db19d4eb39
5 changed files with 6 additions and 24 deletions
|
@ -11,14 +11,6 @@
|
|||
{{ctx.Locale.Tr "action.compare_commits_general"}}
|
||||
{{end}}
|
||||
</h2>
|
||||
{{if .Flash.WarningMsg}}
|
||||
{{/*
|
||||
There's already an importing of alert.tmpl in new_form.tmpl,
|
||||
but only the negative message will be displayed within forms for some reasons, see semantic.css:10659.
|
||||
To avoid repeated negative messages, the importing here if for .Flash.WarningMsg only.
|
||||
*/}}
|
||||
{{template "base/alert" .}}
|
||||
{{end}}
|
||||
{{$BaseCompareName := $.BaseName -}}
|
||||
{{- $HeadCompareName := $.HeadRepo.OwnerName -}}
|
||||
{{- if and (eq $.BaseName $.HeadRepo.OwnerName) (ne $.Repository.Name $.HeadRepo.Name) -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue