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 buttons to add as an incubator committer
Date Sat, 10 Jun 2017 13:11:50 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 2e77dba  add buttons to add as an incubator committer
2e77dba is described below

commit 2e77dba4872fbe161cfb3478236fb6cc90ebeb8d
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sat Jun 10 09:11:19 2017 -0400

    add buttons to add as an incubator committer
---
 www/roster/views/ppmc/committers.js.rb | 8 ++++++++
 www/roster/views/ppmc/members.js.rb    | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/www/roster/views/ppmc/committers.js.rb b/www/roster/views/ppmc/committers.js.rb
index bcb6982..d308cda 100644
--- a/www/roster/views/ppmc/committers.js.rb
+++ b/www/roster/views/ppmc/committers.js.rb
@@ -131,6 +131,14 @@ class PPMCCommitter < React
               data_target: '#confirm', data_toggle: 'modal',
               data_confirmation: "Grant #{@@person.name} committer access?"
           else
+            if @@auth.ipmc and not @@person.icommit
+              _button.btn.btn_primary 'Add as an incubator committer',
+                data_action: 'add icommit',
+                data_target: '#confirm', data_toggle: 'modal',
+                data_confirmation: "Add #{@@person.name} as a commiter " +
+                  "for the incubator PPMC?"
+            end
+
             _button.btn.btn_warning 'Remove as Committer',
               data_action: 'remove committer', 
               data_target: '#confirm', data_toggle: 'modal',
diff --git a/www/roster/views/ppmc/members.js.rb b/www/roster/views/ppmc/members.js.rb
index 8e324cf..2a31ea9 100644
--- a/www/roster/views/ppmc/members.js.rb
+++ b/www/roster/views/ppmc/members.js.rb
@@ -135,6 +135,14 @@ class PPMCMember < React
                   "#{@@ppmc.display_name} PPMC and grant committer access?"
             end
           else
+            if @@auth.ipmc and not @@person.icommit
+              _button.btn.btn_primary 'Add as an incubator committer',
+                data_action: 'add icommit',
+                data_target: '#confirm', data_toggle: 'modal',
+                data_confirmation: "Add #{@@person.name} as a commiter " +
+                  "for the incubator PPMC?"
+            end
+
             if @@ppmc.committers.include? @@person.id
               _button.btn.btn_warning 'Remove as committer and from the PPMC',
                 data_action: 'remove ppmc committer',

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

Mime
View raw message