From be26c119991e5e4e6ec28a881bc0860a4cd9aefc Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 22 Dec 2014 19:18:01 +0000 Subject: Bug 1093924: Move replyToMarkdownComment() and replyToComment() out of templates r=LpSolit,a=glob --- template/en/default/bug/comments.html.tmpl | 81 +++------------------------ template/en/default/bug/show-header.html.tmpl | 2 +- 2 files changed, 10 insertions(+), 73 deletions(-) (limited to 'template/en/default/bug') diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 3895691d7..0c7408a48 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -8,76 +8,12 @@ [% PROCESS bug/time.html.tmpl %] - - [% DEFAULT mode = "show" %] @@ -160,14 +96,15 @@ [tag] [% END %] + [% replyto_author = comment.author.name || comment.author.nick FILTER html %] + [% replyto_header = "(In reply to $replyto_author from comment #$comment.count)" %] [reply] diff --git a/template/en/default/bug/show-header.html.tmpl b/template/en/default/bug/show-header.html.tmpl index f41890a46..4cd7aaa38 100644 --- a/template/en/default/bug/show-header.html.tmpl +++ b/template/en/default/bug/show-header.html.tmpl @@ -25,7 +25,7 @@ [% title = title _ filtered_desc %] [% yui = ['autocomplete', 'calendar'] %] [% yui.push('container') IF user.can_tag_comments %] -[% javascript_urls = [ "js/util.js", "js/field.js" ] %] +[% javascript_urls = [ "js/util.js", "js/field.js", "js/comments.js" ] %] [% javascript_urls.push("js/bug.js") IF user.id %] [% javascript_urls.push('js/comment-tagging.js') IF user.id && Param('comment_taggers_group') %] -- cgit v1.2.3-24-g4f1b