mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-16 01:43:24 +09:00
fix(templates): move list tags out of paragraphs
djlint 1.40.4 adds rule H025, which flags `<ul>` nested inside `<p>`. Browsers already auto-close the `<p>` before the list, so this is a no-op visually. Assisted-by: Claude:Opus 4.8
This commit is contained in:
@@ -63,6 +63,7 @@
|
|||||||
<div>{{.RenderedContent}}</div>
|
<div>{{.RenderedContent}}</div>
|
||||||
</div>
|
</div>
|
||||||
{{end -}}
|
{{end -}}
|
||||||
|
</p>
|
||||||
{{if eq .ActionName "push"}}
|
{{if eq .ActionName "push"}}
|
||||||
<ul>
|
<ul>
|
||||||
{{$repoURL := $.Comment.Issue.PullRequest.BaseRepo.HTMLURL}}
|
{{$repoURL := $.Comment.Issue.PullRequest.BaseRepo.HTMLURL}}
|
||||||
@@ -75,7 +76,6 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
{{end}}
|
{{end}}
|
||||||
</p>
|
|
||||||
<div style="font-size:small; color:#666;">
|
<div style="font-size:small; color:#666;">
|
||||||
<p>
|
<p>
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
---
|
---
|
||||||
<br>
|
<br>
|
||||||
{{.locale.Tr "mail.release.downloads"}}
|
{{.locale.Tr "mail.release.downloads"}}
|
||||||
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
{{if not .DisableDownloadSourceArchives}}
|
{{if not .DisableDownloadSourceArchives}}
|
||||||
<li>
|
<li>
|
||||||
@@ -48,7 +49,6 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
|
||||||
<div style="font-size:small; color:#666;">
|
<div style="font-size:small; color:#666;">
|
||||||
<p>
|
<p>
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user