community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864101 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js
Date Wed, 31 Jul 2019 19:26:12 GMT
Author: humbedooh
Date: Wed Jul 31 19:26:12 2019
New Revision: 1864101

URL: http://svn.apache.org/viewvc?rev=1864101&view=rev
Log:
show some text if user not on any PMCs

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=1864101&r1=1864100&r2=1864101&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 Wed Jul 31 19:26:12
2019
@@ -136,7 +136,9 @@ function splash(state, json, all) {
     tbl.inject(hdr);
     let keys = json.pdata;
     if (all) keys = cycles;
+    let found = 0;
     for (var key in keys) {
+        found++;
         if (pdata.pmcsummary[key]) {
             let tlpname = pdata.pmcsummary[key].name;
             let chair = pdata.pmcsummary[key].chair;
@@ -154,6 +156,10 @@ function splash(state, json, all) {
             tbl.inject(tr);
         }
     }
+    if (!found) {
+        let tr = new HTML('tr', {}, new HTML('td', {colspan: 4}, "It doesn't look like you
are on any PMCs"));
+        tbl.inject(tr);
+    }
     html.inject(tbl);
     
 }

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=1864101&r1=1864100&r2=1864101&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Wed Jul 31 19:26:12 2019
@@ -1124,7 +1124,9 @@ function splash(state, json, all) {
     tbl.inject(hdr);
     let keys = json.pdata;
     if (all) keys = cycles;
+    let found = 0;
     for (var key in keys) {
+        found++;
         if (pdata.pmcsummary[key]) {
             let tlpname = pdata.pmcsummary[key].name;
             let chair = pdata.pmcsummary[key].chair;
@@ -1142,6 +1144,10 @@ function splash(state, json, all) {
             tbl.inject(tr);
         }
     }
+    if (!found) {
+        let tr = new HTML('tr', {}, new HTML('td', {colspan: 4}, "It doesn't look like you
are on any PMCs"));
+        tbl.inject(tr);
+    }
     html.inject(tbl);
     
 }



Mime
View raw message