diff options
author | Israel Madueme <purelogiq@gmail.com> | 2018-08-10 14:57:01 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-08-10 14:57:01 +0200 |
commit | fd850e00db835d2b84c59014c3b1021fea2294fc (patch) | |
tree | b5529f9bf45bb2b8f66b19714d215f1ca6c06c94 /template/en/default/bug/comments.html.tmpl | |
parent | 5a43b27f7940be9697f312c550fa2de11a9e14d7 (diff) | |
download | bugzilla-fd850e00db835d2b84c59014c3b1021fea2294fc.tar.gz bugzilla-fd850e00db835d2b84c59014c3b1021fea2294fc.tar.xz |
Bug 1456878 - Support markdown comments
Diffstat (limited to 'template/en/default/bug/comments.html.tmpl')
-rw-r--r-- | template/en/default/bug/comments.html.tmpl | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 7af08efde..98ab4645e 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -283,15 +283,22 @@ </div> [% END %] -[%# Don't indent the <pre> block, since then the spaces are displayed in the - # generated HTML + +[% IF comment.is_markdown %] + [% comment_tag = 'div' %] +[% ELSE %] + [% comment_tag = 'pre' %] +[% END %] + +[%# Don't indent incaase it's a <pre> block, since then the spaces are + # displayed in the generated HTML #%] -<pre class="bz_comment_text[% " collapsed" IF comment.collapsed %]" +<[% comment_tag FILTER none %] class="bz_comment_text[% " collapsed" IF comment.collapsed %]" [% IF mode == "edit" || comment.collapsed %] id="comment_text_[% comment.count FILTER none %]" [% END %]> - [%- comment_text FILTER quoteUrls(bug, comment) -%] -</pre> + [%- comment_text FILTER renderComment(bug, comment) -%] +</[% comment_tag FILTER none %]> [% Hook.process('a_comment-end', 'bug/comments.html.tmpl') %] </div> [% END %] |