whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit da7f084: add reporter links
Date Tue, 01 Mar 2016 22:36:27 GMT
Commit da7f08412f907639a5b416bfcaafbf5ce8933526:
    add reporter links


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/roster/models/auth.rb                                    | ++++ 
www/roster/views/pmc/main.js.rb                              | +++++++ 
------------------------------------------------------------
11 changes: 11 additions, 0 deletions.
------------------------------------------------------------


diff --git a/www/roster/models/auth.rb b/www/roster/models/auth.rb
index cb42571..8bfbf7d 100644
--- a/www/roster/models/auth.rb
+++ b/www/roster/models/auth.rb
@@ -13,6 +13,10 @@ def self.info(env)
       info[:root] = true
     end
 
+    if user.asf_member?
+      info[:member] = true
+    end
+
     info
   end
 end
diff --git a/www/roster/views/pmc/main.js.rb b/www/roster/views/pmc/main.js.rb
index 400e85d..b0364f1 100644
--- a/www/roster/views/pmc/main.js.rb
+++ b/www/roster/views/pmc/main.js.rb
@@ -70,6 +70,13 @@ def render
         _a 'Prior reports', href: 'https://whimsy.apache.org/board/minutes/' +
           @committee.display_name.gsub(/\s+/, '_')
       end
+
+      if @committee.ldap[@@auth.id] or @@auth.member
+        _li do
+          _a 'Apache Committee Report Helper',
+            href: "https://reporter.apache.org/?#{@committee.id}"
+        end
+      end
     end
 
     # hidden form

Mime
View raw message