Fix #321. Allow empty comments as long as there are attachments.
This commit is contained in:
parent
30d7397f97
commit
dedb156d4a
2 changed files with 7 additions and 2 deletions
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue