You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2016/02/27 23:00:02 UTC
[whimsy.git] [1/1] Commit 980ccb0: more user information
Commit 980ccb00faff766d42dc01b850c4767a905e625e:
more user information
Branch: refs/heads/master
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>
------------------------------------------------------------
www/roster/models/committer.rb | ++++
www/roster/views/committer.js.rb | ++++++++++++
------------------------------------------------------------
27 changes: 27 additions, 0 deletions.
------------------------------------------------------------
diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb
index ca7e8a6..4570486 100644
--- a/www/roster/models/committer.rb
+++ b/www/roster/models/committer.rb
@@ -28,6 +28,10 @@ def self.serialize(id, env)
response[:pgp] = person.pgp_key_fingerprints
end
+ if person.attrs['githubUsername']
+ response[:githubUsername] = person.githubUsername
+ end
+
response[:urls] = person.urls unless person.urls.empty?
response[:committees] = person.committees.map(&:name)
diff --git a/www/roster/views/committer.js.rb b/www/roster/views/committer.js.rb
index bf509c0..4d9a64d 100644
--- a/www/roster/views/committer.js.rb
+++ b/www/roster/views/committer.js.rb
@@ -80,6 +80,29 @@ def render
end
end
+ if committer.mail
+ _tr do
+ _td 'Email addresses'
+ _td do
+ _ul committer.mail do |url|
+ _li do
+ _a url, href: 'mailto:' + url
+ end
+ end
+ end
+ end
+ end
+
+ if committer.githubUsername
+ _tr do
+ _td 'GitHub username'
+ _td do
+ _a committer.githubUsername, href:
+ "https://github.com/" + committer.githubUsername
+ end
+ end
+ end
+
if committer.member
if committer.member.status
_tr do