aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view.tmpl
diff options
context:
space:
mode:
authorJustin Nuß <justin.nuss@hmmh.de>2014-07-25 08:01:34 +0200
committerJustin Nuß <justin.nuss@hmmh.de>2014-07-25 08:01:34 +0200
commitdedb156d4a484d5104113959bb95bc214be40b2b (patch)
tree67115dfd223f10d02a4447648135ff88c56bc7bf /templates/repo/issue/view.tmpl
parent30d7397f9745286282bce2dec960aa9e0e02af94 (diff)
downloadgitea-dedb156d4a484d5104113959bb95bc214be40b2b.tar.gz
gitea-dedb156d4a484d5104113959bb95bc214be40b2b.zip
Fix #321. Allow empty comments as long as there are attachments.
Diffstat (limited to 'templates/repo/issue/view.tmpl')
-rw-r--r--templates/repo/issue/view.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl
index 570698975b..247931c4aa 100644
--- a/templates/repo/issue/view.tmpl
+++ b/templates/repo/issue/view.tmpl
@@ -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}}