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 29d35f70 Revert; needed by the template
29d35f70 is described below

commit 29d35f705eb39eb199158ba53ad2333222e4ecd7
Author: Sebb <[email protected]>
AuthorDate: Fri Dec 29 23:48:03 2023 +0000

    Revert; needed by the template
---
 www/board/agenda/routes.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index fd9b83fc..94dd81f2 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -550,6 +550,14 @@ get '/new' do
   @pmcs = ASF::Board.reporting(@meeting)
   @owner = ASF::Board::ShepherdStream.new(actions)
 
+  # Get list of unpublished and unapproved minutes
+  draft = YAML.load_file(Dir["#{AGENDA_WORK}/board_minutes*.yml"].max)
+  @minutes = dir("board_agenda_*.txt").
+    map {|file| Date.parse(file[/\d[_\d]+/].gsub('_', '-'))}.
+    reject {|date| date >= @meeting.to_date}.
+    reject {|date| draft[date.strftime('%B %d, %Y')] == 'approved'}.
+    sort
+
   template = File.join(ASF::SVN['foundation_board'], 'templates', 
'board_agenda.erb')
   @disabled = dir("board_agenda_*.txt").
     include? @meeting.strftime("board_agenda_%Y_%m_%d.txt")

Reply via email to