community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864298 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js
Date Sat, 03 Aug 2019 04:07:55 GMT
Author: humbedooh
Date: Sat Aug  3 04:07:55 2019
New Revision: 1864298

URL: http://svn.apache.org/viewvc?rev=1864298&view=rev
Log:
IF we have an actual founded date, use it, otherwise fall back to c-i.txt's basic info.

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js?rev=1864298&r1=1864297&r2=1864298&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js Sat Aug  3 04:07:55
2019
@@ -16,7 +16,7 @@ let gcd = (x,y) => {
 
 function generate_pmc_roster(pdata) {
     // PMC age
-    let founded = moment(pdata.pmcdates[project].pmc[1] * 1000.0);
+    let founded = moment((pdata.pmcdates[project].pmc[2]||pdata.pmcdates[project].pmc[1])
* 1000.0);
     let age = founded.fromNow();
     let txt = "%s was founded %s (%s)\n".format(pdata.pmcsummary[project].name, founded.format('YYYY-MM-DD'),
age);
     
@@ -109,7 +109,7 @@ function generate_pmc_roster(pdata) {
 }
 
 function generate_meta(data) {
-    let founded = moment(data.pmcdates[project].pmc[2] * 1000.0);
+    let founded = moment((data.pmcdates[project].pmc[2]||data.pmcdates[project].pmc[1]) *
1000.0);
     let age = founded.fromNow();
     let txt = "<b>Founded: </b>%s (%s)<br/>".format(founded.format('YYYY-MM-DD'),
age);
     txt += "<b>Chair: </b> %s<br/>".format(data.pdata[project].chair);

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864298&r1=1864297&r2=1864298&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Sat Aug  3 04:07:55 2019
@@ -1185,7 +1185,7 @@ let gcd = (x,y) => {
 
 function generate_pmc_roster(pdata) {
     // PMC age
-    let founded = moment(pdata.pmcdates[project].pmc[1] * 1000.0);
+    let founded = moment((pdata.pmcdates[project].pmc[2]||pdata.pmcdates[project].pmc[1])
* 1000.0);
     let age = founded.fromNow();
     let txt = "%s was founded %s (%s)\n".format(pdata.pmcsummary[project].name, founded.format('YYYY-MM-DD'),
age);
     
@@ -1278,7 +1278,7 @@ function generate_pmc_roster(pdata) {
 }
 
 function generate_meta(data) {
-    let founded = moment(data.pmcdates[project].pmc[2] * 1000.0);
+    let founded = moment((data.pmcdates[project].pmc[2]||data.pmcdates[project].pmc[1]) *
1000.0);
     let age = founded.fromNow();
     let txt = "<b>Founded: </b>%s (%s)<br/>".format(founded.format('YYYY-MM-DD'),
age);
     txt += "<b>Chair: </b> %s<br/>".format(data.pdata[project].chair);



Mime
View raw message