From 188b5a68f518ab05e56f81e68ba0534e5f402c33 Mon Sep 17 00:00:00 2001 From: vfilippov Date: Wed, 23 Mar 2011 13:08:17 +0000 Subject: [PATCH] Bug 75772 git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1238 6955db30-a419-402b-8a0d-67ecbb4d7f56 --- .../email/newchangedmail-СМ-Опт.txt.tmpl | 267 ++++++++++++++++++ 1 file changed, 267 insertions(+) create mode 100644 template/en/custom/email/newchangedmail-СМ-Опт.txt.tmpl diff --git a/template/en/custom/email/newchangedmail-СМ-Опт.txt.tmpl b/template/en/custom/email/newchangedmail-СМ-Опт.txt.tmpl new file mode 100644 index 000000000..acab732b8 --- /dev/null +++ b/template/en/custom/email/newchangedmail-СМ-Опт.txt.tmpl @@ -0,0 +1,267 @@ +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): André Batosti + #%] + +[% PROCESS "global/variables.none.tmpl" %] +From: [% Param('mailfrom') %] +To: [% to_user.email %] +Subject: [% (isnew ? '' : 'Re: ') _ '[' + _ terms.Bug _ ' ' _ bugid _ '] ' _ + (severity == 'blocker' ? '[BLOCKER] ' : '') _ + (severity == 'critical' ? '[CRITICAL] ' : '') _ + '[' _ product _ '] ' _ summary %] +X-Bugzilla-Reason: [% reasonsheader %] +X-Bugzilla-Type: [% isnew ? 'new' : 'changed' %] +X-Bugzilla-Watch-Reason: [% reasonswatchheader %] +[% IF Param('useclassification') %] +X-Bugzilla-Classification: [% classification %] +[% END %] +[% IF severity == 'blocker' OR severity == 'critical' %] +Importance: high +X-Priority: 1 +[% END %] +X-Bugzilla-Product: [% product %] +X-Bugzilla-Component: [% comp %] +X-Bugzilla-Keywords: [% keywords %] +X-Bugzilla-Severity: [% severity %] +X-Bugzilla-Who: [% changer %] +X-Bugzilla-Status: [% status %] +X-Bugzilla-Priority: [% priority %] +X-Bugzilla-Assigned-To: [% assignedto %] +X-Bugzilla-Target-Milestone: [% targetmilestone %] +X-Bugzilla-Changed-Fields: [% changedfields || "None" %] +X-Bugzilla-Added-Comments: [% new_comments.size %] +[%+ threadingmarker %] +[% USE date %] +[% SET boundary = "--" _ date.now %] +Content-Type: multipart/alternative; boundary=[% boundary %] +MIME-Version: 1.0 + +--[% boundary %] +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: quoted-printable + +[% FILTER quoted_printable %] +[%+ urlbase %]show_bug.cgi?id=[% bugid %] (prod:[% product %].[% comp %], pri:[% priority %], sev:[% severity %], miles:[% targetmilestone %]) + +[%- IF diffs AND diffs.size > 0 %] +[%- SET lastwho = "" %] +[%- SET lastdep = 0 %] +[%- FOR d = diffs %] +[%- IF d.dep AND d.dep != lastdep %] +[%- SET lastdep = d.dep %] +[%- # ------ Bug Depends on bug , which changed state ------ %] + +Bug [% d.bug_id %] depends on bug [% d.dep %], which changed state. + +Bug [% d.dep %] summary: [% d.short_desc %] +[%+ urlbase %]show_bug.cgi?id=[% d.dep %] + +[%- END %] +[%- IF d.login_name != lastwho %] +[%- # ------ Changed ------ %] +[%- SET lastwho = d.login_name %] + +[% d.login_name %] changed: + +[% three_columns('What ', 'Removed', 'Added') -%] +---------------------------------------------------------------------------- + +[%- END %] +[%- # ------ What Removed Added ------ %] +[% three_columns(d.fielddesc, d.removed, d.added) %] +[%- END %] +[%- END %] +[%- # comments %] +[%- FOREACH comment = new_comments %] + +[%- IF comment.count %] +--- Comment #[% comment.count %] from [% comment.author.identity %] [%+ comment.bug_when FILTER time(undef, to_user.timezone) %] --- +[% END %] +[%+ comment.body_full({ is_bugmail => 1, wrap => 1 }) %] +[% END %] + +-- [%# Protect the trailing space of the signature marker %] +Configure [% terms.bug %]mail: [% urlbase %]userprefs.cgi?tab=email +------- You are receiving this mail because: ------- +[% FOREACH relationship = reasons %] + [% SWITCH relationship %] + [% CASE constants.REL_ASSIGNEE %] +You are the assignee for the [% terms.bug %]. + [% CASE constants.REL_REPORTER %] +You reported the [% terms.bug %]. + [% CASE constants.REL_QA %] +You are the QA contact for the [% terms.bug %]. + [% CASE constants.REL_CC %] +You are on the CC list for the [% terms.bug %]. Remove yourself from the CC list. + [% CASE constants.REL_VOTER %] +You are a voter for the [% terms.bug %]. + [% CASE constants.REL_GLOBAL_WATCHER %] +You are watching all [% terms.bug %] changes. + [% END %] +[% END %] +[% FOREACH relationship = reasons_watch %] + [% SWITCH relationship %] + [% CASE constants.REL_ASSIGNEE %] +You are watching the assignee of the [% terms.bug %]. + [% CASE constants.REL_REPORTER %] +You are watching the reporter. + [% CASE constants.REL_QA %] +You are watching the QA contact of the [% terms.bug %]. + [% CASE constants.REL_CC %] +You are watching someone on the CC list of the [% terms.bug %]. + [% CASE constants.REL_VOTER %] +You are watching a voter for the [% terms.bug %]. + [% END %] +[% END %] +[% END %] + +--[% boundary %] +Content-Type: text/html; charset=utf-8 +Content-Transfer-Encoding: quoted-printable + +[% FILTER quoted_printable %] + + +

+[% IF severity == 'blocker' OR severity == 'critical' %] + Bug [% bugid %] [[% severity | upper %]] - [% summary | html %]  +[% ELSE %] +Bug [% bugid %] - [% summary | html %] +[% END %] +
(prod:[% product %].[% comp %], pri:[% priority %], sev:[% severity %], miles:[% targetmilestone %]) +

+ +
+ +[% IF new_comments AND new_comments.size > 0 %] + [% FOR comment = new_comments %] +

Comment #[% comment.count %] from + + + + [% comment.bug_when FILTER time(undef, to_user.timezone) %]

+
+[%- comment.body_full({ wrap => 1 }) FILTER quoteUrls(bug, comment) FILTER absolute_uris -%]
+  
+
+ [% END %] +[% END %] + +[% IF isnew AND showfieldvalues.size > 0 %] + +[% FOR f = showfieldvalues %] + +[% END %] +
[% f.desc FILTER html %]:[% f.value FILTER html %]
+
+[% END %] + +[% IF diffs AND diffs.size > 0 %] +[% SET lastwho = "" %] +[% SET lastdep = 0 %] + +[% FOR d = diffs %] + + [% IF d.dep AND d.dep != lastdep %] + [%# ------ Bug Depends on bug , which changed state ------ %] + [%- SET lastdep = d.dep %] + +
+

Bug [% d.bug_id %] depends + on bug [% d.dep %], + which changed state.

+

Bug [% d.dep %] + summary: [% d.short_desc | html %]. +

+
+ + [% END %] + + [% IF d.login_name != lastwho %] + [%# ------ Changed ------ %] + [% SET lastwho = d.login_name %] + [% IF !loop.first %] +
+
+ + [% END %] + + + [% END %] + + [%# ------ What Removed Added ------ %] + + +[% END %] +
[% d.realname || d.login_name %] changed:
WhatRemovedAdded
[% d.fielddesc %][% d.removed %][% d.added %]
+
+[% END %] + +

+--
+Configure [% terms.bug %]mail
+------- You are receiving this mail because: -------
+[% FOREACH relationship = reasons %] + [% SWITCH relationship %] + [% CASE constants.REL_ASSIGNEE %] +You are the assignee for the [% terms.bug %]. + [% CASE constants.REL_REPORTER %] +You reported the [% terms.bug %]. + [% CASE constants.REL_QA %] +You are the QA contact for the [% terms.bug %]. + [% CASE constants.REL_CC %] +You are on the CC list for the [% terms.bug %]. Remove yourself from the CC list. + [% CASE constants.REL_VOTER %] +You are a voter for the [% terms.bug %]. + [% CASE constants.REL_GLOBAL_WATCHER %] +You are watching all [% terms.bug %] changes. + [% END %] +[% END %] +[% FOREACH relationship = reasons_watch %] + [% SWITCH relationship %] + [% CASE constants.REL_ASSIGNEE %] +
You are watching the assignee of the [% terms.bug %]. + [% CASE constants.REL_REPORTER %] +
You are watching the reporter. + [% CASE constants.REL_QA %] +
You are watching the QA contact of the [% terms.bug %]. + [% CASE constants.REL_CC %] +
You are watching someone on the CC list of the [% terms.bug %]. + [% CASE constants.REL_VOTER %] +
You are watching a voter for the [% terms.bug %]. + [% END %] +[% END %] +

+ +[% END %] +--[% boundary %]--