From 2cb3f8115aab1328c8845bcba22c7dc7190bcad9 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Mon, 20 May 2013 15:45:42 +0200 Subject: Bug 873920: Whine e-mails to other people includes invalid link r/a=LpSolit --- template/en/default/whine/mail.html.tmpl | 8 +++++--- template/en/default/whine/mail.txt.tmpl | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/template/en/default/whine/mail.html.tmpl b/template/en/default/whine/mail.html.tmpl index 72e7d8004..21784299e 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 ba1e95741..845869db4 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. -- cgit v1.2.3-24-g4f1b