You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/07/31 19:26:12 UTC

svn commit: r1864101 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js

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);
     
 }