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

sebb 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 9ecc7213 Add closing message
9ecc7213 is described below

commit 9ecc7213c605ad4be38d52a944849dae413740bc
Author: Sebb <[email protected]>
AuthorDate: Tue Mar 12 15:27:06 2024 +0000

    Add closing message
---
 www/members/invitations.cgi | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/www/members/invitations.cgi b/www/members/invitations.cgi
index c61bc03c..40aa96d7 100755
--- a/www/members/invitations.cgi
+++ b/www/members/invitations.cgi
@@ -113,6 +113,8 @@ def match_person(hash, id, name, mails)
   return nil
 end
 
+remain = ASF::MeetingUtil.application_time_remaining
+
 # produce HTML output of reports, highlighting ones that have not (yet)
 # been posted
 _html do
@@ -146,8 +148,16 @@ _html do
         _p 'It does not check against applications which are pending'
         _p 'The invite and reply columns link to the relevant emails in 
members@ if possible'
         _p %{
-            N.B. The code only looks at the subject to determine if an email 
is an invite or its reply
+            N.B. The code only looks at the subject to determine if an email 
is an invite or its reply.
+            Also the members@ emails are only scanned every 10 minutes or so.
         }
+        _p do
+          if remain[:hoursremain] > 0
+            _b "Applications close in #{remain[:days]} days and 
#{remain[:hours]} hours"
+          else
+            _b "Applications can no longer be accepted, sorry."
+          end
+        end
       }
     ) do
 

Reply via email to