From 2e2981d25c185fde56f29c7aed4e3e6bba50039e Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 15 Oct 2015 23:59:10 +0800 Subject: Bug 1153101 - add hooks for edit-comments extension --- .../en/default/pages/editcomments.html.tmpl | 127 +++++---------------- 1 file changed, 27 insertions(+), 100 deletions(-) (limited to 'extensions/EditComments/template/en/default/pages/editcomments.html.tmpl') diff --git a/extensions/EditComments/template/en/default/pages/editcomments.html.tmpl b/extensions/EditComments/template/en/default/pages/editcomments.html.tmpl index 8b3b90c9e..13364f5b1 100644 --- a/extensions/EditComments/template/en/default/pages/editcomments.html.tmpl +++ b/extensions/EditComments/template/en/default/pages/editcomments.html.tmpl @@ -6,117 +6,44 @@ # defined by the Mozilla Public License, v. 2.0. #%] -[% PROCESS global/variables.none.tmpl %] - -[% PROCESS global/header.html.tmpl - title = "Comment changes made to $terms.bug $bug.id, comment $comment.id" - header = "Activity log for $terms.bug $bug.id, comment $comment.id" - %] - - +[% + PROCESS global/variables.none.tmpl; + PROCESS global/header.html.tmpl + title = "$bug.id comment $comment.count Activity" + style_urls = ['extensions/EditComments/web/styles/editcomments.css'] +%] + +

+ Comment changes made to + [%= "$terms.bug $bug.id comment $comment.count" + FILTER bug_link(bug, { comment_num => comment.count }) + FILTER none %] +

- [% "Back to $terms.bug $bug.id" FILTER bug_link(bug.id) FILTER none %] + Note: The actual edited comment in the [% terms.bug %] view + page will always show the original commentor's name and original timestamp.

-

- Note: The actual edited comment in the [% terms.bug %] view page will always show the original commentor's name and original timestamp. -

- -

- Collapse All Changes - - Expand All Changes -

- -[% count = 0 %] [% FOREACH a = comment.activity %] -
-
- - [% IF a.original %] - Original comment by [% (a.author.name || "Need Real Name") FILTER html %] - - () - - on [%+ a.time FILTER time %] - [% ELSE %] - Revision by [% (a.author.name || "Need Real Name") FILTER html %] - - () - - on [%+ a.time FILTER time %] - [% END %] - - [-] +
+
+ [% a.original ? "Original comment" : "Revision" %] + by [% INCLUDE bug_modal/user.html.tmpl u=a.author %] + on [% a.time FILTER time %]
- [% IF a.original %] - [% wrapped_comment = a.body FILTER wrap_comment %] - [% ELSE %] - [% wrapped_comment = a.new FILTER wrap_comment %] - [% END %] -[%# Don't indent the
 block, since then the spaces are displayed in the
-  # generated HTML %]
-
-  [%- wrapped_comment FILTER quoteUrls(bug) -%]
-
- [% count = count + 1 %] +
+    [%- a.original ? a.body : a.new FILTER quoteUrls(bug) -%]
+  
[% END %] -[% IF comment.activity.size > 0 %] +[% IF comment.activity.size %]

- [% "Back to $terms.bug $bug.id" FILTER bug_link(bug.id) FILTER none %] + [%= "Back to $terms.bug $bug.id comment $comment.count" + FILTER bug_link(bug, { comment_num => comment.count }) + FILTER none %]

[% END %] [% PROCESS global/footer.html.tmpl %] - -- cgit v1.2.3-24-g4f1b