mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-08 14:03:24 +09:00
Fix #321. Allow empty comments as long as there are attachments.
This commit is contained in:
@@ -72,7 +72,11 @@
|
||||
<span class="role label label-default pull-right">Owner</span>
|
||||
</div>
|
||||
<div class="panel-body markdown">
|
||||
{{if len .Content}}
|
||||
{{str2html .Content}}
|
||||
{{else}}
|
||||
<i>No comment entered</i>
|
||||
{{end}}
|
||||
</div>
|
||||
{{with $attachments := .Attachments}}
|
||||
{{if $attachments}}
|
||||
|
||||
Reference in New Issue
Block a user