]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 573368: Whine emails should include links to load buglists listed in the email
authorMatt Selsky <selsky@columbia.edu>
Sat, 25 Feb 2012 23:04:04 +0000 (00:04 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 25 Feb 2012 23:04:04 +0000 (00:04 +0100)
r/a=LpSolit

template/en/default/whine/mail.html.tmpl
template/en/default/whine/mail.txt.tmpl
whine.pl

index d82e214f7cfcf8ab2d702554161358a15d137148..81c1041eef48cf73bf8a3cc4cb22543846a54208 100644 (file)
@@ -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
   #%]
         </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 %]
 
index eb88414645768e5e04bd48775e2d910fd1a87a01..44ea655f2a21b7de51448c4378d99348a8caec9d 100644 (file)
@@ -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 %]
 
index 49290017486e0308495e52eafb4cd17bcc4cd31a..7dca2620b8c34a9a12382eb989a52917ad3e9404 100755 (executable)
--- 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