whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Show whether person is on any PMCs
Date Tue, 05 Nov 2019 17:05:57 GMT
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 <sebb@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


Mime
View raw message