[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] Comments: Improve handling of "Replied to" snippets and ensure correct HTML rendering
"Jean-Marc Kadimba \(@jmkadimba\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <696a18188ff11_2c1816e083197@gitlab-sidekiq-low-urgency-cpu-bound-v2-859b9cfb8-5mqkn.mail> |
Jean-Marc Kadimba pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki Commits: cf8f8fef by Jean-Marc Kadimba at 2026-01-16T12:44:46+02:00 [FIX] Comments: Improve handling of "Replied to" snippets and ensure correct HTML rendering --- * [FIX] Comments: Improve handling of "Replied to" snippets and ensure correct HTML rendering --- * [FIX] Comments: Improve handling of "Replied to" snippets and ensure correct HTML rendering --- * Small improvement to the referred truncated string and the prepended text * [FIX] Comments: Implementing strip_tags to remove unwanted HTML tag rendering in "Replied to" snippet See merge request tikiwiki/tiki!6787 (cherry picked from commit d8ca48547f107c51ffced992c0314cde17edc011) See merge request tikiwiki/tiki!6830 (cherry picked from commit dba2702490feaa62c8c376d343cfaba762e59da3) c57d1c6d [FIX] Comments: Improve handling of "Replied to" snippets and ensure correct HTML rendering Co-authored-by: amani nyumu <[email protected]> See merge request tikiwiki/tiki!9361 - - - - - 1 changed file: - templates/comment/list_inner.tpl Changes: ===================================== templates/comment/list_inner.tpl ===================================== @@ -23,9 +23,10 @@ </div> </h4> <div class="comment-body"> - {if isset($repliedTo) && $repliedTo.parsed && $prefs.comments_threshold_indent neq '0' && $level eq 1} + {if isset($repliedTo) && $repliedTo.parsed && $level >= $prefs.comments_threshold_indent && $prefs.comments_threshold_indent ne 0} <span class="d-flex ps-2 border-start border-5 comment-replied-to"> - {tr _0=$repliedTo.parsed|truncate:15}Replied to %0{/tr} + {assign var="parentExcerpt" value=$repliedTo.parsed|strip_tags|truncate:15} + {tr _0="<em>$parentExcerpt</em>"}In reply to %0{/tr} </span> {/if} {$comment.parsed} View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/cf8f8fefe81c1194e7d92400aa0d77b2c360e45d -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/cf8f8fefe81c1194e7d92400aa0d77b2c360e45d You're receiving this email because of your account on gitlab.com. _______________________________________________ TikiWiki-cvs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs