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/12/27 17:35:14 UTC

[whimsy] branch master updated: warn when calendar.txt needs updating

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 232bae2  warn when calendar.txt needs updating
232bae2 is described below

commit 232bae20a90e768ca3c41235b65dcda752df5ad1
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri Dec 27 12:34:51 2019 -0500

    warn when calendar.txt needs updating
---
 www/board/agenda/views/new.html.rb | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/www/board/agenda/views/new.html.rb b/www/board/agenda/views/new.html.rb
index 0d46822..9afecdc 100644
--- a/www/board/agenda/views/new.html.rb
+++ b/www/board/agenda/views/new.html.rb
@@ -10,6 +10,16 @@ _html do
 
   _div.container.new_agenda! do
     if @next_month and not @next_month.empty?
+      if ASF::Board.calendar.max < Time.now.utc
+	_div.error do
+	  _h4 'No next meeting date set'
+	  _a 'committers/board/calendar.txt',
+	     href: 'https://svn.apache.org/repos/private/committers/board/calendar.txt'
+	  _span ' needs to be updated in svn with a list of future meeting dates.'
+	  _span ' Assuming third Wednesday of the month for the next meeting.'
+	end
+      end
+
       _div.commented do
         _h4 'Committees expected to report next month, and why:'
         _pre.commented @next_month.gsub(@next_month.scan(/\s+#/).max.to_s, " -")