summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Selsky <selsky@columbia.edu>2012-02-26 00:04:04 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-02-26 00:04:04 +0100
commitdf2bdf8153e103826321d7363f9632b461e7589e (patch)
tree0e3d1eac0db8a7f3943fe7f70da094400aa0c85e
parent775710d62d38f9395f938e76be41fb2381fd09f1 (diff)
downloadbugzilla-df2bdf8153e103826321d7363f9632b461e7589e.tar.gz
bugzilla-df2bdf8153e103826321d7363f9632b461e7589e.tar.xz
Bug 573368: Whine emails should include links to load buglists listed in the email
r/a=LpSolit
-rw-r--r--template/en/default/whine/mail.html.tmpl5
-rw-r--r--template/en/default/whine/mail.txt.tmpl3
-rwxr-xr-xwhine.pl1
3 files changed, 8 insertions, 1 deletions
diff --git a/template/en/default/whine/mail.html.tmpl b/template/en/default/whine/mail.html.tmpl
index d82e214f7..81c1041ee 100644
--- a/template/en/default/whine/mail.html.tmpl
+++ b/template/en/default/whine/mail.html.tmpl
@@ -12,6 +12,7 @@
# queries: array of hashes containing:
# bugs: array containing hashes of fieldnames->values for each bug
# title: the title given in the whine scheduling mechanism
+ # name: the name of the query
# author: user object for the person who scheduled this whine
# recipient: user object for the intended recipient of the message
#%]
@@ -71,6 +72,10 @@
</tr>
[% END %]
</table>
+
+ <p align="left">
+ <a href="[% urlbase FILTER html %]buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% query.name FILTER uri %]">View as [% terms.bug %] list</a>
+ </p>
[% END %]
[% ELSE %]
diff --git a/template/en/default/whine/mail.txt.tmpl b/template/en/default/whine/mail.txt.tmpl
index eb8841464..44ea655f2 100644
--- a/template/en/default/whine/mail.txt.tmpl
+++ b/template/en/default/whine/mail.txt.tmpl
@@ -12,6 +12,7 @@
# queries: array of hashes containing:
# bugs: array containing hashes of fieldnames->values for each bug
# title: the title given in the whine scheduling mechanism
+ # name: the name of the query
# author: user object for the person who scheduled this whine
# recipient: user object for the intended recipient of the message
#%]
@@ -44,7 +45,7 @@
Summary: [% bug.short_desc %]
[% END %]
-
+View as [% terms.bug %] list: [% urlbase %]buglist.cgi?cmdtype=runnamed&namedcmd=[% query.name FILTER uri %]
[% END %]
[% ELSE %]
diff --git a/whine.pl b/whine.pl
index 492900174..7dca2620b 100755
--- a/whine.pl
+++ b/whine.pl
@@ -338,6 +338,7 @@ while (my $event = get_next_event) {
# - queries array of hashes containing:
# - bugs: array of hashes mapping fieldnames to values for this bug
# - title: text title given to this query in the whine event
+# - name: text name of this query
# - schedule_id integer id of the schedule being run
# - subject Subject line for the message
# - recipient user object for the recipient