mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 08:42:32 -05:00
a6175b01d9
Fix #23082. This bug is caused by a nil context in https://github.com/go-gitea/gitea/issues/23082#issuecomment-1441276546 . --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
6 lines
281 B
Go HTML Template
6 lines
281 B
Go HTML Template
{{if .item.Attributes.label}}
|
|
<h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
|
|
{{end}}
|
|
{{if .item.Attributes.description}}
|
|
<span class="help">{{RenderMarkdownToHtml .Context .item.Attributes.description}}</span>
|
|
{{end}}
|