mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-03 00:22:21 +00:00
Prevent empty div when editing comment (#12404)
* Prevent empty div when editing comment The template for attachments needs to remove whitespace and return empty when there are no attachments. Fix #10220
This commit is contained in:
1 parent
8a6790b2aa
commit
33391e04fe
2 files changed
+5
-5
No files matched your search
@@ -1,4 +1,4 @@
|
||||
{{range .Attachments}}
|
||||
{{- range .Attachments -}}
|
||||
<div class="twelve wide column" style="padding: 6px;">
|
||||
<a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}" title='{{$.ctx.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
|
||||
{{if FilenameIsImage .Name}}
|
||||
@@ -12,4 +12,4 @@
|
||||
<div class="four wide column" style="padding: 0px;">
|
||||
<span class="ui text grey right">{{.Size | FileSize}}</span>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end -}}
|
||||
Reference in new issue
Block a user