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 a18118c  add summary
a18118c is described below

commit a18118c43b777b41d5a31c6f2784fdd436e5243d
Author: Sam Ruby <[email protected]>
AuthorDate: Fri Mar 18 10:55:56 2022 -0400

    add summary
---
 www/members/non-participants.cgi | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/www/members/non-participants.cgi b/www/members/non-participants.cgi
index 4e688b8..78476b9 100755
--- a/www/members/non-participants.cgi
+++ b/www/members/non-participants.cgi
@@ -146,7 +146,15 @@ _html do
       end
     end
 
-    _div.count "Count: #{count} members inactive for #{@meetingsMissed} 
meetings."
+    _div.count "Count: #{count} members inactive for #{@meetingsMissed} 
meetings:"
+
+    summary = matrix.
+      select {|id, _name, _first, missed| id && missed >= @meetingsMissed}.
+      map(&:first).group_by {|id| current_status[id]}.sort
+
+    _ul summary do |status, list|
+      _li "#{status}: #{list.length}"
+    end
 
     _script %{
       var table = $(".table").stupidtable();
@@ -172,4 +180,4 @@ _json do
   Hash[inactive.map {|id, name, _first, missed|
     [id, {name: name, missed: missed, status: current_status[id]}]
     }]
-end
+end
\ No newline at end of file

Reply via email to