You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/03/26 10:36:30 UTC
[whimsy] branch master updated: Display host info
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 f35fec9 Display host info
f35fec9 is described below
commit f35fec973948c218c21f06c3f91e7dbf372e8b76
Author: Sebb <se...@apache.org>
AuthorDate: Tue Mar 26 10:35:41 2019 +0000
Display host info
---
www/roster/models/committer.rb | 2 ++
www/roster/views/person/main.js.rb | 9 +++++++++
2 files changed, 11 insertions(+)
diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb
index 8f1a855..618bdbb 100644
--- a/www/roster/models/committer.rb
+++ b/www/roster/models/committer.rb
@@ -56,6 +56,8 @@ class Committer
response[:ssh] = person.ssh_public_keys
end
+ response[:host] = person.attrs['host'] || ['(none)']
+
if person.attrs['asf-sascore']
response[:sascore] = person.attrs['asf-sascore'].first # should only be one, but is returned as array
end
diff --git a/www/roster/views/person/main.js.rb b/www/roster/views/person/main.js.rb
index d974571..1a53557 100644
--- a/www/roster/views/person/main.js.rb
+++ b/www/roster/views/person/main.js.rb
@@ -231,6 +231,15 @@ class Person < Vue
_PersonPgpKeys person: self, edit: @edit
end
+ # hosts
+ _div.row do
+ _div.name 'Host Access'
+ _div.value do
+ # pre avoids wrapping on hyphens and reduces number of lines on the page
+ _pre @committer.host.join(' ')
+ end
+ end
+
# SSH keys
if @committer.ssh || @auth
@committer.ssh ||= []