You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/11/05 17:05:57 UTC

[whimsy] branch master updated: Show whether person is on any PMCs

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 cbe00a4  Show whether person is on any PMCs
cbe00a4 is described below

commit cbe00a45eb949cec8a6798f1172c64166a56e518
Author: Sebb <se...@apache.org>
AuthorDate: Tue Nov 5 17:05:47 2019 +0000

    Show whether person is on any PMCs
---
 www/board/subscriptions.cgi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/board/subscriptions.cgi b/www/board/subscriptions.cgi
index 690c6af..275b441 100755
--- a/www/board/subscriptions.cgi
+++ b/www/board/subscriptions.cgi
@@ -126,7 +126,12 @@ _html do
               elsif ldap_chairs.include? person
                 _td.text_danger '***LDAP only***'
               else
-                _td.text_danger '*** non-member, non-officer ***'
+                pmcs = person.project_owners.map(&:name)
+                if pmcs.length == 0
+                  _td.text_danger '*** non-member, non-officer, non-pmc ***'
+                else
+                  _td.text_warning "*** non-member, non-officer, pmcs: #{pmcs.join ','} ***"
+                end 
               end
             end
           end