From d6e7e1bd1c206b1b336f867ba6a51ed8c6e2fbb1 Mon Sep 17 00:00:00 2001 From: Edmund Wong Date: Wed, 19 May 2010 20:05:38 +0200 Subject: Bug 487106: Add explanation when a whining is empty r=Callek r=LpSolit a=LpSolit --- template/en/default/whine/mail.html.tmpl | 59 +++++++++++++++++--------------- template/en/default/whine/mail.txt.tmpl | 15 ++++---- 2 files changed, 40 insertions(+), 34 deletions(-) (limited to 'template') diff --git a/template/en/default/whine/mail.html.tmpl b/template/en/default/whine/mail.html.tmpl index a4f0edeef..ae4f00cfc 100644 --- a/template/en/default/whine/mail.html.tmpl +++ b/template/en/default/whine/mail.html.tmpl @@ -53,39 +53,42 @@ [% END %]

+[% IF queries.size %] + [% FOREACH query=queries %] -[% FOREACH query=queries %] +

[%+ query.title FILTER html %]

-

[%+ query.title FILTER html %]

- - - - - - - - - - - - - - [% FOREACH bug=query.bugs %] +
IDSevPriPltAssigneeStatusResolutionSummary
- - - - - - - - + + + + + + + + - [% END %] -
[% bug.bug_id %][% display_value("bug_severity", bug.bug_severity) FILTER html %][% display_value("priority", bug.priority) FILTER html %][% display_value("rep_platform", bug.rep_platform) FILTER html %][% bug.assigned_to FILTER html %][% display_value("bug_status", bug.bug_status) FILTER html %][% display_value("resolution", bug.resolution) FILTER html %][% bug.short_desc FILTER html %]IDSevPriPltAssigneeStatusResolutionSummary
-[% END %] + [% FOREACH bug=query.bugs %] + + [% bug.bug_id %] + [% display_value("bug_severity", bug.bug_severity) FILTER html %] + [% display_value("priority", bug.priority) FILTER html %] + [% display_value("rep_platform", bug.rep_platform) FILTER html %] + [% bug.assigned_to FILTER html %] + [% display_value("bug_status", bug.bug_status) FILTER html %] + [% display_value("resolution", bug.resolution) FILTER html %] + [% bug.short_desc FILTER html %] + + [% END %] + + [% END %] +[% ELSE %] + +

No [% terms.bugs %] were found that matched the search criteria.

+[% END %] diff --git a/template/en/default/whine/mail.txt.tmpl b/template/en/default/whine/mail.txt.tmpl index 862ae2671..13216d895 100644 --- a/template/en/default/whine/mail.txt.tmpl +++ b/template/en/default/whine/mail.txt.tmpl @@ -40,13 +40,13 @@ This search was scheduled by [% author.login %]. [% END %] - -[% FOREACH query=queries %] +[% IF queries.size %] + [% FOREACH query=queries %] [%+ query.title +%] [%+ "-" FILTER repeat(query.title.length) %] - [% FOREACH bug=query.bugs %] + [% FOREACH bug=query.bugs %] [% terms.Bug +%] [%+ bug.bug_id %]: [%+ urlbase %]show_bug.cgi?id=[% bug.bug_id +%] Priority: [%+ display_value("priority", bug.priority) -%] @@ -55,11 +55,14 @@ Assignee: [%+ bug.assigned_to %] Status: [%+ display_value("bug_status", bug.bug_status) %] [%- IF bug.resolution -%] Resolution: [% display_value("resolution", bug.resolution) -%] - [%- END %] + [%- END %] Summary: [% bug.short_desc %] - [% END %] + [% END %] -[% END %] + [% END %] +[% ELSE %] + No [% terms.bugs %] were found that matched the search criteria. +[% END %] -- cgit v1.2.3-24-g4f1b