This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git

commit cd143f3a5f36982d04ee15e0d61e7dc5584d7175
Author: Daniel Gruno <humbed...@apache.org>
AuthorDate: Tue Feb 13 17:05:27 2018 +0100

    Convert 'first commit' to a date/repo string
---
 ui/js/coffee/widget_comstat.coffee | 3 ++-
 ui/js/kibble.v1.js                 | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ui/js/coffee/widget_comstat.coffee 
b/ui/js/coffee/widget_comstat.coffee
index 47465ab..299e3da 100644
--- a/ui/js/coffee/widget_comstat.coffee
+++ b/ui/js/coffee/widget_comstat.coffee
@@ -52,6 +52,7 @@ comstat = (json, state) ->
                 hash = json.bios[person].code[1].id.split('/')[1]
                 repo = json.bios[person].code[1].sourceURL
                 person = json.bios[person].bio
+                wh = new Date(json.bios[person].code[0] * 
1000.0).toDateSTring()
                 if i > 6
                     m = json.stats.code.newcomers.length - 7
                     tr = mk('tr', {scope: 'row'}, [
@@ -63,7 +64,7 @@ comstat = (json, state) ->
                     mk('td', {}, new HTML('img', {style: { width: '32px', 
height: '32px'}, class: "img-circle img-responsive", 
src:"https://secure.gravatar.com/avatar/#{person.md5}.png?d=identicon"})),
                     mk('td', {}, mk('a', { href: 
"?page=people&email=#{oemail}"}, person.name)),
                     mk('td', {}, oemail),
-                    mk('td', {}, "#{repo} / #{hash}"),
+                    mk('td', {}, "#{wh} (#{repo})"),
                     ])
                 tb.inject(tr)
             app(tbl, tb)
diff --git a/ui/js/kibble.v1.js b/ui/js/kibble.v1.js
index 516d80a..f3b07f6 100644
--- a/ui/js/kibble.v1.js
+++ b/ui/js/kibble.v1.js
@@ -5303,7 +5303,7 @@ Row = (function() {
 })();
 
 comstat = function(json, state) {
-  var aa, ab, chk, hash, i, js, key, lb, len, len1, len2, len3, m, nl, notice, 
oemail, p, person, q, ref, ref1, ref2, ref3, repo, row, stbl, tb, tbl, tr, u, 
url, widget;
+  var aa, ab, chk, hash, i, js, key, lb, len, len1, len2, len3, m, nl, notice, 
oemail, p, person, q, ref, ref1, ref2, ref3, repo, row, stbl, tb, tbl, tr, u, 
url, wh, widget;
   if (json && json.stats) {
     row = new Row();
     p = new HTML('p', {}, globArgs.committersOnly === 'true' ? "You are 
currently only seeing stats for committers. To view statistics for all 
contributors (committers and authors), please uncheck the box below:" : "You 
are currently seeing stats for both committership and authorship of code. To 
view only committership stats, tick the box below:");
@@ -5360,6 +5360,7 @@ comstat = function(json, state) {
         hash = json.bios[person].code[1].id.split('/')[1];
         repo = json.bios[person].code[1].sourceURL;
         person = json.bios[person].bio;
+        wh = new Date(json.bios[person].code[0] * 1000.0).toDateSTring();
         if (i > 6) {
           m = json.stats.code.newcomers.length - 7;
           tr = mk('tr', {
@@ -5384,7 +5385,7 @@ comstat = function(json, state) {
             src: "https://secure.gravatar.com/avatar/"; + person.md5 + 
".png?d=identicon"
           })), mk('td', {}, mk('a', {
             href: "?page=people&email=" + oemail
-          }, person.name)), mk('td', {}, oemail), mk('td', {}, repo + " / " + 
hash)
+          }, person.name)), mk('td', {}, oemail), mk('td', {}, wh + " (" + 
repo + ")")
         ]);
         tb.inject(tr);
       }

-- 
To stop receiving notification emails like this one, please contact
humbed...@apache.org.

Reply via email to