community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1652249 - /comdev/projects.apache.org/site/js/projects.js
Date Thu, 15 Jan 2015 19:31:15 GMT
Author: humbedooh
Date: Thu Jan 15 19:31:15 2015
New Revision: 1652249

URL: http://svn.apache.org/r1652249
Log:
work a bit on the type defining logic

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=1652249&r1=1652248&r2=1652249&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Thu Jan 15 19:31:15 2015
@@ -789,11 +789,15 @@ function buildProjectListAsTable(json) {
 	
 	// Get project type
 	var type = "Sub-Project"
-	if (unixgroups[p]) {
+	var shortp = p.split("-")[0];
+	if (unixgroups[shortp]) {
 	    type = "TLP"
 	} else {
 	    type = "Retired"
 	}
+	if ((!committees[project.name] && pmcs[project.pmc]) || project.name.match(/incubating/i))
{
+	    type = "Sub-project"
+	}
 	if (project.podling || project.name.match(/incubating/i)) {
 	    type = "Podling"
 	    pmc = "Apache Incubator"



Mime
View raw message