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 2017/07/02 01:30:51 UTC

[whimsy] branch master updated: Show the LDAP creation date

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 3e61c69  Show the LDAP creation date
3e61c69 is described below

commit 3e61c69006785949c7d39e66e11183793f312aca
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jul 2 02:30:50 2017 +0100

    Show the LDAP creation date
---
 www/roster/models/committer.rb | 7 +++++++
 www/roster/views/person.js.rb  | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb
index 01da135..7e775d5 100644
--- a/www/roster/models/committer.rb
+++ b/www/roster/models/committer.rb
@@ -10,6 +10,13 @@ class Committer
     response[:id] = id
 
     response[:member] = person.asf_member?
+    # reformat the timestamp
+    m = person.createTimestamp.match(/^(\d\d\d\d)(\d\d)(\d\d)/)
+    if m
+      response[:createTimestamp] = m[1] + '-' + m[2] + '-' + m[3]
+    else # should not happen, but ...
+      response[:createTimestamp] = person.createTimestamp
+    end
 
     name = {}
 
diff --git a/www/roster/views/person.js.rb b/www/roster/views/person.js.rb
index a58b78c..4eab4c6 100644
--- a/www/roster/views/person.js.rb
+++ b/www/roster/views/person.js.rb
@@ -15,6 +15,13 @@ class Person < React
     # Name
     _PersonName person: self
 
+    _div.row do
+      _div.name 'LDAP Create Date'
+      _div.value do
+        _ @committer.createTimestamp
+      end
+    end
+
     # Personal URL
     if @committer.urls
       _PersonUrls person: self

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