diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 4ad6c8aec..70cd08865 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -43,6 +43,7 @@ use Bugzilla::Product; use Bugzilla::Component; use Bugzilla::Status; use Bugzilla::Mailer; +use Bugzilla::Diff; use Date::Parse; use Date::Format; @@ -635,13 +636,13 @@ sub sendMail for my $change (@$diffs) { - my $field = Bugzilla->get_field($change->{'fieldname'}); - if (($change->{'fieldname'} eq 'longdesc' || $field->{'type'} eq FIELD_TYPE_TEXTAREA) && !$change->{'both'}) + my $field = Bugzilla->get_field($change->{fieldname}); + if (($change->{fieldname} eq 'longdesc' || $field->{type} eq FIELD_TYPE_TEXTAREA) && !$change->{lines}) { - my $diff = new Bugzilla::Diff($change->{'removed'}, $change->{'added'}); - $change->{'both'} = $diff->get_table; - $change->{'diff_removed'} = $diff->get_removed; - $change->{'diff_added'} = $diff->get_added; + my $diff = new Bugzilla::Diff($change->{removed}, $change->{added}); + $change->{lines} = $diff->get_table; + $change->{diff_removed} = $diff->get_removed; + $change->{diff_added} = $diff->get_added; } } diff --git a/Bugzilla/Diff.pm b/Bugzilla/Diff.pm index 0efdb771e..aebd524c2 100644 --- a/Bugzilla/Diff.pm +++ b/Bugzilla/Diff.pm @@ -67,7 +67,7 @@ sub get_hash { my ($self, $force) = @_; $force = 0 unless $force; - if ($force || !($self->{'context'})) + if ($force || !$self->{'context'}) { $self->{'diff'} = $self->diff($self->{old}, $self->{new}); $self->make_context; @@ -79,13 +79,13 @@ sub get_hash return $self->{'context'}; } -# templated diff +# formatted diff sub get_table { - my ($self, $force) = @_; + my ($self, $force, $column) = @_; $force = 0 unless $force; my $diff = $self->get_hash($force); - my $result = ''; + my $result = []; for (my $i = 0; $i < $self->{'context'}->{'length'}; $i++) { # old and new texts - [type, value] @@ -101,14 +101,12 @@ sub get_table $nval =~ s/\n//g; } - $result .= ''; - $result .= ''; - $result .= ''; - $result .= ''; - $result .= ''; - $result .= ''; + push @$result, ''; } - $result .= '
' . ($old->{'type'} eq TYPE_REM ? TYPE_REM : '') . '{'type'} eq TYPE_REM ? ' style="border: 1px solid #900;"' : '') . '>' . $oval . '' . ($new->{'type'} eq TYPE_ADD ? TYPE_ADD : '') . '{'type'} eq TYPE_ADD ? ' style="border: 1px solid #090;"' : '') . '>' . $nval . '
' . + $oval . '' . + $nval . '
'; return $result; } @@ -118,6 +116,7 @@ sub get_removed my ($self, $force) = @_; return $self->get_part(1, $force); } + # get only added (with context) sub get_added { diff --git a/show_activity.cgi b/show_activity.cgi index 744c26bd1..a769481e0 100755 --- a/show_activity.cgi +++ b/show_activity.cgi @@ -60,20 +60,25 @@ my $operations; ($operations, $vars->{'incomplete_data'}) = Bugzilla::Bug::GetBugActivity($bug->id); -for (my $i = 0; $i < (scalar @$operations); $i++) +for (my $i = 0; $i < scalar @$operations; $i++) { - for (my $j = 0; $j < (scalar @{$operations->[$i]->{'changes'}}); $j++) + my $lines = 0; + for (my $j = 0; $j < scalar @{$operations->[$i]->{changes}}; $j++) { - my $change = $operations->[$i]->{'changes'}->[$j]; - my $field = Bugzilla->get_field($change->{'fieldname'}); - if (($change->{'fieldname'} eq 'longdesc' || $field->{'type'} eq FIELD_TYPE_TEXTAREA)) + my $change = $operations->[$i]->{changes}->[$j]; + my $field = Bugzilla->get_field($change->{fieldname}); + if ($change->{fieldname} eq 'longdesc' || $field->{type} eq FIELD_TYPE_TEXTAREA) { - my $diff = new Bugzilla::Diff($change->{'removed'}, $change->{'added'}); - $operations->[$i]->{'changes'}->[$j]->{'both'} = $diff->get_table; - $operations->[$i]->{'changes'}->[$j]->{'removed'} = ''; - $operations->[$i]->{'changes'}->[$j]->{'added'} = ''; + my $diff = new Bugzilla::Diff($change->{removed}, $change->{added})->get_table; + $operations->[$i]->{changes}->[$j]->{lines} = $diff; + $lines += scalar @$diff; + } + else + { + $lines++; } } + $operations->[$i]->{total_lines} = $lines; } $vars->{'operations'} = $operations; diff --git a/template/en/custom/email/newchangedmail-СМ-OK.txt.tmpl b/template/en/custom/email/newchangedmail-СМ-OK.txt.tmpl deleted file mode 100644 index 8f8196e44..000000000 --- a/template/en/custom/email/newchangedmail-СМ-OK.txt.tmpl +++ /dev/null @@ -1,279 +0,0 @@ -[%# 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 - #%] - -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 %] -[% FOREACH keyword_item = keywords.split(", ") %] -X-Bugzilla-Keywords: [% keyword_item %] -[% END%] -X-Bugzilla-Severity: [% severity %] -X-Bugzilla-Who: [% changer.login %] -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.diff_removed ? d.diff_removed : d.removed, d.diff_added ? d.diff_added : 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, wo_preview => 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, wo_preview => 1 }) 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 ------ %] - - [% IF d.both %][% ELSE %][% END %] - - -[% END %] -
[% d.realname || d.login_name %] changed:
WhatRemovedAdded
- [% IF d.fieldname == 'longdesc' %] - - [% IF d.comment_count > 0 %]Comment #[% d.comment_count %][% ELSE %]Description[% END %] - - [% ELSE %] - [% d.fielddesc %] - [% END %] - [% d.both %][% 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 %]-- diff --git a/template/en/custom/email/newchangedmail-СМ-RMS.txt.tmpl b/template/en/custom/email/newchangedmail-СМ-RMS.txt.tmpl deleted file mode 100644 index 8f8196e44..000000000 --- a/template/en/custom/email/newchangedmail-СМ-RMS.txt.tmpl +++ /dev/null @@ -1,279 +0,0 @@ -[%# 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 - #%] - -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 %] -[% FOREACH keyword_item = keywords.split(", ") %] -X-Bugzilla-Keywords: [% keyword_item %] -[% END%] -X-Bugzilla-Severity: [% severity %] -X-Bugzilla-Who: [% changer.login %] -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.diff_removed ? d.diff_removed : d.removed, d.diff_added ? d.diff_added : 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, wo_preview => 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, wo_preview => 1 }) 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 ------ %] - - [% IF d.both %][% ELSE %][% END %] - - -[% END %] -
[% d.realname || d.login_name %] changed:
WhatRemovedAdded
- [% IF d.fieldname == 'longdesc' %] - - [% IF d.comment_count > 0 %]Comment #[% d.comment_count %][% ELSE %]Description[% END %] - - [% ELSE %] - [% d.fielddesc %] - [% END %] - [% d.both %][% 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 %]-- diff --git a/template/en/custom/email/newchangedmail-СМ-View.txt.tmpl b/template/en/custom/email/newchangedmail-СМ-View.txt.tmpl deleted file mode 100644 index 8f8196e44..000000000 --- a/template/en/custom/email/newchangedmail-СМ-View.txt.tmpl +++ /dev/null @@ -1,279 +0,0 @@ -[%# 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 - #%] - -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 %] -[% FOREACH keyword_item = keywords.split(", ") %] -X-Bugzilla-Keywords: [% keyword_item %] -[% END%] -X-Bugzilla-Severity: [% severity %] -X-Bugzilla-Who: [% changer.login %] -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.diff_removed ? d.diff_removed : d.removed, d.diff_added ? d.diff_added : 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, wo_preview => 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, wo_preview => 1 }) 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 ------ %] - - [% IF d.both %][% ELSE %][% END %] - - -[% END %] -
[% d.realname || d.login_name %] changed:
WhatRemovedAdded
- [% IF d.fieldname == 'longdesc' %] - - [% IF d.comment_count > 0 %]Comment #[% d.comment_count %][% ELSE %]Description[% END %] - - [% ELSE %] - [% d.fielddesc %] - [% END %] - [% d.both %][% 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 %]-- diff --git a/template/en/custom/email/newchangedmail-СМ-МРТ.txt.tmpl b/template/en/custom/email/newchangedmail-СМ-МРТ.txt.tmpl deleted file mode 100644 index 8f8196e44..000000000 --- a/template/en/custom/email/newchangedmail-СМ-МРТ.txt.tmpl +++ /dev/null @@ -1,279 +0,0 @@ -[%# 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 - #%] - -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 %] -[% FOREACH keyword_item = keywords.split(", ") %] -X-Bugzilla-Keywords: [% keyword_item %] -[% END%] -X-Bugzilla-Severity: [% severity %] -X-Bugzilla-Who: [% changer.login %] -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.diff_removed ? d.diff_removed : d.removed, d.diff_added ? d.diff_added : 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, wo_preview => 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, wo_preview => 1 }) 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 ------ %] - - [% IF d.both %][% ELSE %][% END %] - - -[% END %] -
[% d.realname || d.login_name %] changed:
WhatRemovedAdded
- [% IF d.fieldname == 'longdesc' %] - - [% IF d.comment_count > 0 %]Comment #[% d.comment_count %][% ELSE %]Description[% END %] - - [% ELSE %] - [% d.fielddesc %] - [% END %] - [% d.both %][% 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 %]-- diff --git a/template/en/custom/email/newchangedmail-СМ-Опт.txt.tmpl b/template/en/custom/email/newchangedmail-СМ-Опт.txt.tmpl deleted file mode 100644 index 8f8196e44..000000000 --- a/template/en/custom/email/newchangedmail-СМ-Опт.txt.tmpl +++ /dev/null @@ -1,279 +0,0 @@ -[%# 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 - #%] - -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 %] -[% FOREACH keyword_item = keywords.split(", ") %] -X-Bugzilla-Keywords: [% keyword_item %] -[% END%] -X-Bugzilla-Severity: [% severity %] -X-Bugzilla-Who: [% changer.login %] -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.diff_removed ? d.diff_removed : d.removed, d.diff_added ? d.diff_added : 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, wo_preview => 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, wo_preview => 1 }) 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 ------ %] - - [% IF d.both %][% ELSE %][% END %] - - -[% END %] -
[% d.realname || d.login_name %] changed:
WhatRemovedAdded
- [% IF d.fieldname == 'longdesc' %] - - [% IF d.comment_count > 0 %]Comment #[% d.comment_count %][% ELSE %]Description[% END %] - - [% ELSE %] - [% d.fielddesc %] - [% END %] - [% d.both %][% 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 %]-- diff --git a/template/en/default/bug/activity/table.html.tmpl b/template/en/default/bug/activity/table.html.tmpl index 379d2fe8d..3ada31efc 100644 --- a/template/en/default/bug/activity/table.html.tmpl +++ b/template/en/default/bug/activity/table.html.tmpl @@ -58,15 +58,15 @@ [% FOREACH operation = operations %] [% op_loop = loop.count %] - + [% operation.who FILTER email FILTER html %] - + [% operation.when FILTER time %] [% FOREACH change = operation.changes %] [% "" IF loop.index > 0 %] - + [% IF change.attachid %] Attachment #[% change.attachid %] @@ -78,18 +78,21 @@ [% ELSE %] Description [% END %] - [% IF change.removed.length > 85 || change.added.length > 85 %] + [% IF !change.lines && (change.removed.length > 85 || change.added.length > 85) %]
Show full text [% END %] [% ELSE %] [%+ field_descs.${change.fieldname} || Bugzilla.get_field(change.fieldname).description FILTER html %] [% END %] - [% IF change.both %] - [% change.both %] + [% IF change.lines %] + [% FOR l = change.lines %] + [% "" IF loop.index > 0 %] + [% l %] + [% END %] [% ELSE %] - [% PROCESS change_column change_type = change.removed op_type = "removed" op_count = loop.count op_loop = op_loop %] - [% PROCESS change_column change_type = change.added op_type = "added" op_count = loop.count op_short_comment %] + [% PROCESS change_column change_type = change.removed op_type = "removed" op_count = loop.count op_loop = op_loop %] + [% PROCESS change_column change_type = change.added op_type = "added" op_count = loop.count op_short_comment %] [% END %] [% END %] diff --git a/template/en/default/email/newchangedmail.txt.tmpl b/template/en/default/email/newchangedmail.txt.tmpl index 00bdc45bc..500c41057 100644 --- a/template/en/default/email/newchangedmail.txt.tmpl +++ b/template/en/default/email/newchangedmail.txt.tmpl @@ -20,7 +20,19 @@ From: [% Param('mailfrom') %] To: [% to_user.email %] -Subject: [% (isnew ? '' : 'Re: ') _ '[' _ terms.Bug _ ' ' _ bugid _ '] ' _ (severity == 'blocker' ? '[BLOCKER] ' : '') _ (severity == 'critical' ? '[CRITICAL] ' : '') _ summary %] +[% IF product == 'СМ-ОК' || product == 'СМ-RMS' || product == 'СМ-View' || product == 'СМ-МРТ' || product == 'СМ-Опт' %] +Subject: [% (isnew ? '' : 'Re: ') _ '[' + _ terms.Bug _ ' ' _ bugid _ '] ' _ + (severity == 'blocker' ? '[BLOCKER] ' : '') _ + (severity == 'critical' ? '[CRITICAL] ' : '') _ +'[' _ product _ '] ' _ summary %] +[% ELSE %] +Subject: [% (isnew ? '' : 'Re: ') _ '[' + _ terms.Bug _ ' ' _ bugid _ '] ' _ + (severity == 'blocker' ? '[BLOCKER] ' : '') _ + (severity == 'critical' ? '[CRITICAL] ' : '') _ + summary %] +[% END %] X-Bugzilla-Reason: [% reasonsheader %] X-Bugzilla-Type: [% isnew ? 'new' : 'changed' %] X-Bugzilla-Watch-Reason: [% reasonswatchheader %] @@ -218,7 +230,8 @@ body { font-family: Segoe UI, sans-serif; } [% END %] [%# ------ What Removed Added ------ %] - + + [% IF d.fieldname == 'longdesc' %] [% IF d.comment_count > 0 %]Comment #[% d.comment_count %][% ELSE %]Description[% END %] @@ -227,7 +240,15 @@ body { font-family: Segoe UI, sans-serif; } [% d.fielddesc %] [% END %] - [% IF d.both %][% d.both %][% ELSE %][% d.removed %][% d.added %][% END %] + [% IF d.lines %] + [% FOR l = d.lines %] + [% "" IF loop.index > 0 %] + [% l %] + [% END %] + [% ELSE %] + [% d.removed %] + [% d.added %] + [% END %] [% END %]