whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: add a member watch page for mentors
Date Sun, 11 Jun 2017 13:42:28 GMT
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 2c445ba  add a member watch page for mentors
2c445ba is described below

commit 2c445ba06289980e399d0f3c94d65b6c1d0c425d
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Jun 11 09:42:16 2017 -0400

    add a member watch page for mentors
---
 www/members/watch.cgi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/www/members/watch.cgi b/www/members/watch.cgi
index 7e1ece2..dc7ceb2 100755
--- a/www/members/watch.cgi
+++ b/www/members/watch.cgi
@@ -83,6 +83,12 @@ _html do
                 end
               end
 
+              unless request =~ /mentors/
+                _li do
+                  _a 'Non-member incubator mentors', href: 'members/watch/mentors'
+                end
+              end
+
               _li do
                 _a 'PMCs with no members', href: 'members/memberless-pmcs'
               end
@@ -103,6 +109,11 @@ _html do
       _h2_ 'PMC Chairs'
       list = ASF.pmc_chairs
       list -= ASF.members
+    elsif request =~ /mentors/
+      _h2_ 'Incubator Mentors'
+      list = ASF::Podling.current.map {|podling| podling.mentors}.flatten.
+        uniq.map {|id| ASF::Person.find(id)}
+      list -= ASF.members
     elsif request =~ /nominees/
       _h2_ 'Member Nominees'
       list = nominations.uniq.map {|id| ASF::Person.find(id)}

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message