[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [% RETURN UNLESS is_shadow_bug %] [% public_bug = bug.cf_shadow_bug_obj %] [% count = 0 %] [% FOREACH comment = shadow_comments %] [% IF count >= start_at %] [% PROCESS a_comment %] [% END %] [% count = count + increment %] [% END %] [% BLOCK a_comment %] [% RETURN IF comment.is_private AND NOT (user.is_insider || user.id == comment.author.id) %] [% comment_text = comment.body_full %] [% RETURN IF comment_text == '' %]
[% IF count == description %] [% class_name = "bz_first_comment_head" %] [% comment_label = "Public Description" %] [% ELSE %] [% class_name = "bz_comment_head" %] [% comment_label = "Public Comment " _ count %] [% END %]
[%- comment_label FILTER html %] [% commenter_id = comment.author.id %] [% UNLESS user_cache.$commenter_id %] [% user_cache.$commenter_id = BLOCK %] [% INCLUDE global/user.html.tmpl who = comment.author %] [% END %] [% END %] [% user_cache.$commenter_id FILTER none %] [% Hook.process('user', 'bug/comments.html.tmpl') %] [% FOREACH group = comment.author.groups_with_icon %] [% group.name FILTER html %] [% END %] [%+ comment.creation_ts FILTER time %]
  [%- comment_text FILTER quoteUrls(public_bug, comment) -%]
[% END %]