From: Simon Green Date: Mon, 20 May 2013 13:45:42 +0000 (+0200) Subject: Bug 873920: Whine e-mails to other people includes invalid link X-Git-Tag: bugzilla-4.5.1~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cb3f8115aab1328c8845bcba22c7dc7190bcad9;p=thirdparty%2Fbugzilla.git Bug 873920: Whine e-mails to other people includes invalid link r/a=LpSolit --- diff --git a/template/en/default/whine/mail.html.tmpl b/template/en/default/whine/mail.html.tmpl index 72e7d80046..21784299e6 100644 --- a/template/en/default/whine/mail.html.tmpl +++ b/template/en/default/whine/mail.html.tmpl @@ -66,9 +66,11 @@ [% END %] -

- View as [% terms.bug %] list -

+ [% IF author.login == recipient.login %] +

+ View as [% terms.bug %] list +

+ [% END %] [% END %] [% ELSE %] diff --git a/template/en/default/whine/mail.txt.tmpl b/template/en/default/whine/mail.txt.tmpl index ba1e957417..845869db40 100644 --- a/template/en/default/whine/mail.txt.tmpl +++ b/template/en/default/whine/mail.txt.tmpl @@ -51,8 +51,10 @@ [% END %] + [% IF author.login == recipient.login %] View as [% terms.bug %] list: [% urlbase %]buglist.cgi?cmdtype=runnamed&namedcmd=[% query.name FILTER uri %] [% END %] + [% END %] [% ELSE %] No [% terms.bugs %] were found that matched the search criteria.