aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/dashboard
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-12-04 22:48:42 +0100
committerGitHub <noreply@github.com>2023-12-04 15:48:42 -0600
commitb3c258828f11d6c5900f8209a46ea93482c93519 (patch)
tree69db7a42dfb8a82be7ea734223f06f80277f5425 /templates/user/dashboard
parentec1feedbf582b05b6a5e8c59fb2457f25d053ba2 (diff)
downloadgitea-b3c258828f11d6c5900f8209a46ea93482c93519.tar.gz
gitea-b3c258828f11d6c5900f8209a46ea93482c93519.zip
Refactor template empty checks (#28351)
Diffstat (limited to 'templates/user/dashboard')
-rw-r--r--templates/user/dashboard/feeds.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl
index 3a080a3505..728715bbc7 100644
--- a/templates/user/dashboard/feeds.tmpl
+++ b/templates/user/dashboard/feeds.tmpl
@@ -106,7 +106,7 @@
{{else if .GetOpType.InActions "comment_issue" "approve_pull_request" "reject_pull_request" "comment_pull"}}
<a href="{{.GetCommentLink ctx}}" class="text truncate issue title">{{(.GetIssueTitle ctx) | RenderEmoji $.Context | RenderCodeBlock}}</a>
{{$comment := index .GetIssueInfos 1}}
- {{if gt (len $comment) 0}}
+ {{if $comment}}
<div class="markup gt-font-14">{{RenderMarkdownToHtml ctx $comment}}</div>
{{end}}
{{else if .GetOpType.InActions "merge_pull_request"}}