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: embolden ASF members
Date Wed, 18 May 2016 14:23:00 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  555af63   embolden ASF members
555af63 is described below

commit 555af63ef234761f85d4bce1da66b53def642523
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Wed May 18 10:22:41 2016 -0400

    embolden ASF members
---
 www/roster/models/committee.rb        |  1 +
 www/roster/views/pmc/committers.js.rb | 10 ++++++++--
 www/roster/views/pmc/pmc.js.rb        | 11 +++++++++--
 3 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/www/roster/models/committee.rb b/www/roster/models/committee.rb
index a8ec3ff..1cf291f 100644
--- a/www/roster/models/committee.rb
+++ b/www/roster/models/committee.rb
@@ -31,6 +31,7 @@ class Committee
       established: pmc.established,
       ldap: Hash[pmc.members.map {|person| [person.id, person.cn]}],
       committers: Hash[committers.map {|person| [person.id, person.cn]}],
+      asfmembers: (ASF.members & people).map(&:id),
       roster: pmc.roster,
       mail: Hash[lists.sort]
     }
diff --git a/www/roster/views/pmc/committers.js.rb b/www/roster/views/pmc/committers.js.rb
index 9db8a42..d04a6bb 100644
--- a/www/roster/views/pmc/committers.js.rb
+++ b/www/roster/views/pmc/committers.js.rb
@@ -85,8 +85,14 @@ class PMCCommitter < React
 
   def render
     _tr onDoubleClick: self.select do
-      _td {_a @@person.id, href: "committer/#{@@person.id}"}
-      _td @@person.name
+
+      if @@committee.asfmembers.include? @@person.id
+        _td { _b { _a @@person.id, href: "committer/#{@@person.id}"} }
+        _td { _b @@person.name }
+      else
+        _td { _a @@person.id, href: "committer/#{@@person.id}" }
+        _td @@person.name
+      end
 
       if @state == :open
         _td data_id: @@person.id do 
diff --git a/www/roster/views/pmc/pmc.js.rb b/www/roster/views/pmc/pmc.js.rb
index bc112c8..cf11fe5 100644
--- a/www/roster/views/pmc/pmc.js.rb
+++ b/www/roster/views/pmc/pmc.js.rb
@@ -92,8 +92,15 @@ class PMCMember < React
 
   def render
     _tr onDoubleClick: self.select do
-      _td {_a @@person.id, href: "committer/#{@@person.id}"}
-      _td @@person.name
+
+      if @@committee.asfmembers.include? @@person.id
+        _td { _b @@person.name }
+        _td { _b { _a @@person.id, href: "committer/#{@@person.id}" } }
+      else
+        _td @@person.name
+	_td { _a @@person.id, href: "committer/#{@@person.id}" }
+      end
+
       _td @@person.date
 
       if @state == :open

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

Mime
View raw message