You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/05/13 01:34:29 UTC

[whimsy] branch master updated: tweak subject, to, and cc for emailed reports

This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new bb16736  tweak subject, to, and cc for emailed reports
bb16736 is described below

commit bb16736f62ff1491e2202a11eebc6e9a552892bd
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat May 12 21:34:01 2018 -0400

    tweak subject, to, and cc for emailed reports
---
 www/board/agenda/views/buttons/email.js.rb | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/views/buttons/email.js.rb b/www/board/agenda/views/buttons/email.js.rb
index f79cc31..fb85c71 100644
--- a/www/board/agenda/views/buttons/email.js.rb
+++ b/www/board/agenda/views/buttons/email.js.rb
@@ -61,8 +61,14 @@ class Email < Vue
       body = @@item.comments.join("\n\n")
 
       if not body and @@item.text
-        to = mail_list
-        cc = @@item.cc
+        monthNames = %w(January February March April May June July August
+          September October November December)
+        year = Agenda.date.split('-')[0].to_i
+        month = Agenda.date.split('-')[1].to_i
+
+        subject = "[REPORT] #{@@item.title} - #{monthNames[month-1]} #{year}"
+        to = @@item.cc
+        cc = mail_list
         body = @@item.text
       end
     end

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.