community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1679442 - /comdev/projects.apache.org/site/js/projects.js
Date Thu, 14 May 2015 19:51:18 GMT
Author: hboutemy
Date: Thu May 14 19:51:18 2015
New Revision: 1679442

URL: http://svn.apache.org/r1679442
Log:
improve checks in case of TLP without DOAP

Modified:
    comdev/projects.apache.org/site/js/projects.js

Modified: comdev/projects.apache.org/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/projects.js?rev=1679442&r1=1679441&r2=1679442&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Thu May 14 19:51:18 2015
@@ -270,7 +270,7 @@ function renderProjectPage(project, proj
         return;
     }
 
-    var isIncubating = project && (project.podling || project.name.match(/incubating/i));
+    var isIncubating = project && (project.podling || (project.name && project.name.match(/incubating/i)));
 
     // Rerig the unix name and tlp
     var unixgroup = projectId.split("-")[0];
@@ -311,7 +311,7 @@ function renderProjectPage(project, proj
     } else {
 	isTLP = true
     }
-    var name = project ? project.name : tlp.name;
+    var name = (project && project.name) ? project.name : tlp.name;
     if (!name.match(/incubating/i)) {
         name +=  " (" + pt + ")";
     }
@@ -337,7 +337,7 @@ function renderProjectPage(project, proj
 
         // Reporting cycle
         var cycles = [ "every month", "January, April, July, October", "February, May, August,
November", "March, June, September, December" ];
-        appendLiInnerHTML(ul, "<b>Reporting cycle:</b> " + cycles[tlp.reporting]
+ ", see <a href='https://whimsy.apache.org/board/minutes/" + camelCase(project.pmc) +
".html'>minutes</a>");
+        appendLiInnerHTML(ul, "<b>Reporting cycle:</b> " + cycles[tlp.reporting]
+ ", see <a href='https://whimsy.apache.org/board/minutes/" + camelCase(tlpId) + ".html'>minutes</a>");
 
         // PMC
         if (unixgroups[unixgroup+"-pmc"]) {
@@ -350,12 +350,14 @@ function renderProjectPage(project, proj
         }
 
         // Committers
-        var commitl = [];
-        var commitgroup = unixgroups[unixgroup];
-        for (i in commitgroup) {
-            commitl.push(linkCommitterIndex(commitgroup[i]));
+        if (unixgroups[unixgroup+"-pmc"]) {
+            var commitl = [];
+            var commitgroup = unixgroups[unixgroup];
+            for (i in commitgroup) {
+                commitl.push(linkCommitterIndex(commitgroup[i]));
+            }
+            appendLiInnerHTML(ul, "<b>Committers (" + commitgroup.length + "):</b>
<blockquote>" + commitl.join(", &nbsp;") + "</blockqoute>");
         }
-        appendLiInnerHTML(ul, "<b>Committers (" + commitgroup.length + "):</b>
<blockquote>" + commitl.join(", &nbsp;") + "</blockqoute>");
 
         var subprojects = [];
         for (p in projects) {



Mime
View raw message