[%# 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. #%] [% flagtype_name = flag ? flag.type.name : old_flag.type.name %] [% statuses = { '+' => "granted" , '-' => 'denied' , 'X' => "canceled" , '?' => "asked" } %] [% action = flag.status || 'X' %] [% pending_request = (flag && flag.status == '?') %] [% reassigned = (pending_request && flag.setter_id != user.id) %] [% was_pending_request = (old_flag && old_flag.status == '?') %]
[% INCLUDE global/user.html.tmpl user = to_user, who = user %] has [% IF reassigned =%] reassigned [% INCLUDE global/user.html.tmpl user = to_user, who = flag.setter %]'s request for [% IF old_flag.requestee.defined %] [%= INCLUDE global/user.html.tmpl user = to_user, who = old_flag.requestee %]'s [% END %] [%= flagtype_name FILTER html %] [% IF flag.requestee.defined =%] to [% INCLUDE global/user.html.tmpl user = to_user, who = flag.requestee %] [% END %] [% ELSE %] [%= statuses.$action FILTER html %] [% IF pending_request %] [%= INCLUDE global/user.html.tmpl user = to_user, who = flag.requestee %] for [% ELSIF was_pending_request %] [%= INCLUDE global/user.html.tmpl user = to_user, who = old_flag.setter %]'s request for [% IF old_flag.requestee.defined %] [%= INCLUDE global/user.html.tmpl user = to_user, who = old_flag.requestee %]'s [% END %] [% END %] [% flagtype_name FILTER html %] [% END %]:
[% "$terms.Bug $bug.bug_id" FILTER bug_link(bug, {full_url => 1, user => to_user}) FILTER none %]: [%= bug.short_desc FILTER html %]
[% IF attachment %]Attachment [% attachment.id FILTER html %]: [%= attachment.description FILTER html %]
[% END %] [% Hook.process('after_summary') %][% FOREACH comment = new_comments %]