You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2017/04/14 00:57:36 UTC
[whimsy] branch master updated: Allow switching of count
This is an automated email from the ASF dual-hosted git repository.
curcuru 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 119cc79 Allow switching of count
119cc79 is described below
commit 119cc79467ba9ccda4a18743e9f01b01fee45918
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Thu Apr 13 20:57:32 2017 -0400
Allow switching of count
---
www/members/memberless-pmcs.cgi | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/www/members/memberless-pmcs.cgi b/www/members/memberless-pmcs.cgi
index b77d44d..6ba2ae1 100755
--- a/www/members/memberless-pmcs.cgi
+++ b/www/members/memberless-pmcs.cgi
@@ -8,7 +8,7 @@ require 'date'
#
# Provide a report on PMCs with a given number of ASF members
#
-
+counts = [1, 2, 3, 4]
_html do
_body? do
count = (@count || 3).to_i
@@ -21,6 +21,7 @@ _html do
members = ASF::Member.list.keys
committees = ASF::Committee.load_committee_info
_whimsy_content do
+
_table_.table.table_striped do
_thead_ do
_tr do
@@ -30,7 +31,15 @@ _html do
_th 'Chair', data_sort: 'string'
end
end
-
+ _p do
+ _ 'Switch to:'
+ counts.each do |c|
+ _a href: "/members/memberless-pmcs?count=#{c}" do
+ _button.btn.btn_info c
+ end
+ _ " | " unless c.equal? counts.last
+ end
+ end
_tbody do
committees.sort_by {|pmc| pmc.display_name.downcase}.each do |pmc|
next if pmc.roster.keys.empty? # EA, Marketing, etc.
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].