mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-20 17:55:55 +00:00
[v12.0/forgejo] fix(ui): release: name is overridden with tag name on edit (#8290)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/8002
Fixes #8001
Regression: f66a6b12cd
(https://codeberg.org/forgejo/forgejo/issues/6645)
Co-authored-by: Beowulf <beowulf@beocode.eu>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8290
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
This commit is contained in:
parent
d99cecc176
commit
a70fa6d8ba
2 changed files with 97 additions and 75 deletions
|
@ -46,7 +46,7 @@
|
|||
</div>
|
||||
<div class="eleven wide tw-pt-0">
|
||||
<div class="field {{if .Err_Title}}error{{end}}">
|
||||
<input id="release-title" name="title" aria-label="{{ctx.Locale.Tr "repo.release.title"}}" placeholder="{{ctx.Locale.Tr "repo.release.title"}}" value="{{.tag_name}}" autofocus maxlength="255">
|
||||
<input id="release-title" name="title" aria-label="{{ctx.Locale.Tr "repo.release.title"}}" placeholder="{{ctx.Locale.Tr "repo.release.title"}}" value="{{if .PageIsEditRelease}}{{.title}}{{else}}{{.tag_name}}{{end}}" autofocus maxlength="255">
|
||||
</div>
|
||||
<div class="field">
|
||||
{{template "shared/combomarkdowneditor" (dict
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue