summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-03-06 04:09:49 +0000
committerGitHub <noreply@github.com>2021-03-06 05:09:49 +0100
commit20f13bfdfc5f801e6db319d8d87da0ee139aa32e (patch)
tree4d4b3696379aeba04f0b78ea18ec869e299b0d2e /templates/user
parentfd4b309c6f15ad0770067f42ed9a5a6abace3d96 (diff)
downloadgitea-20f13bfdfc5f801e6db319d8d87da0ee139aa32e.tar.gz
gitea-20f13bfdfc5f801e6db319d8d87da0ee139aa32e.zip
Fix a couple of issues with a feeds (#14897)
@CirnoT spotted a couple of issues with feeds on discord. This PR fixes both of these.
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/dashboard/feeds.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl
index d25920a24e..057a4a7625 100644
--- a/templates/user/dashboard/feeds.tmpl
+++ b/templates/user/dashboard/feeds.tmpl
@@ -110,7 +110,8 @@
<span class="text truncate issue title">{{index .GetIssueInfos 1 | RenderEmoji}}</span>
{{else if or (eq .GetOpType 10) (eq .GetOpType 21) (eq .GetOpType 22) (eq .GetOpType 23)}}
<a href="{{.GetCommentLink}}" class="text truncate issue title">{{.GetIssueTitle | RenderEmoji}}</a>
- <p class="text light grey">{{index .GetIssueInfos 1 | RenderEmoji}}</p>
+ {{$comment := index .GetIssueInfos 1}}
+ {{if gt (len $comment) 0}}<p class="text light grey">{{$comment | RenderEmoji}}</p>{{end}}
{{else if eq .GetOpType 11}}
<p class="text light grey">{{index .GetIssueInfos 1}}</p>
{{else if or (eq .GetOpType 12) (eq .GetOpType 13) (eq .GetOpType 14) (eq .GetOpType 15)}}