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 2019/08/17 13:25:05 UTC

[whimsy] branch master updated: tailor operations reminder emails

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 4057d20  tailor operations reminder emails
4057d20 is described below

commit 4057d2078a52c2fe508483f30d1ed33625192993
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat Aug 17 09:24:48 2019 -0400

    tailor operations reminder emails
---
 www/board/agenda/views/buttons/email.js.rb | 36 +++++++++++++++++++++---------
 1 file changed, 25 insertions(+), 11 deletions(-)

diff --git a/www/board/agenda/views/buttons/email.js.rb b/www/board/agenda/views/buttons/email.js.rb
index d38008f..4201477 100644
--- a/www/board/agenda/views/buttons/email.js.rb
+++ b/www/board/agenda/views/buttons/email.js.rb
@@ -46,22 +46,36 @@ class Email < Vue
 
     if @@item.missing
       subject = "Missing #{@@item.title} Board Report"
-      body = %{
-        Dear #{@@item.owner},
+      if @@item.attach =~ /^\d/
+        body = %{
+          Dear #{@@item.owner},
 
-        The board report for #{@@item.title} has not yet been submitted for
-        this month's board meeting. If you or another member of the PMC are
-        unable to get it in by twenty-four hours before meeting time, please
-        let the board know, and plan to report next month.
+          The board report for #{@@item.title} has not yet been submitted for
+          this month's board meeting.  Please try to submit these reports by the
+          Friday before the meeting. 
 
-          https://www.apache.org/foundation/board/reporting#how
+          Thanks,
 
-        Thanks,
+          #{User.username}
+        }
+      else
+        body = %{
+          Dear #{@@item.owner},
 
-        #{User.username}
+          The board report for #{@@item.title} has not yet been submitted for
+          this month's board meeting. If you or another member of the PMC are
+          unable to get it in by twenty-four hours before meeting time, please
+          let the board know, and plan to report next month.
 
-        (on behalf of the ASF Board)
-      }
+            https://www.apache.org/foundation/board/reporting#how
+
+          Thanks,
+
+          #{User.username}
+
+          (on behalf of the ASF Board)
+        }
+      end
 
       # strip indentation; concatenate lines within a paragraph
       indent = body[/^\s*/]