community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1679641 - /comdev/projects.apache.org/site/js/projects.js
Date Fri, 15 May 2015 20:31:27 GMT
Author: hboutemy
Date: Fri May 15 20:31:27 2015
New Revision: 1679641

URL: http://svn.apache.org/r1679641
Log:
only retired projects are inactive: detecting inactive by missing LDAP group does not work
when TLP created but not LDAP group yet

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=1679641&r1=1679640&r2=1679641&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Fri May 15 20:31:27 2015
@@ -384,6 +384,15 @@ function renderProjectPage(project, proj
         ul = document.createElement('ul');
     }
 
+    // TLP Owner?
+    if (project.pmc) {
+        if (project.pmc.match(/http:\/\/([a-z0-9]+)/i)) {
+            project.pmc = project.pmc.match(/http:\/\/([a-z0-9]+)/i)[1];
+        }
+    } else {
+        project.pmc = tlpId;
+    }
+
     // Base data
     appendElementWithInnerHTML(obj,'h4',"Project base data:");
 
@@ -404,20 +413,12 @@ function renderProjectPage(project, proj
     }
     if (isIncubating) {
         appendLiInnerHTML(ul, "<b>Project status:</b> <span class='ppodling'>Incubating</span>");
-    } else if (unixgroups[unixgroup]) {
+    } else if (tlpId != 'attic') {
 	appendLiInnerHTML(ul, "<b>Project status:</b> <span class='pactive'>Active</span>");
     } else {
 	appendLiInnerHTML(ul, "<b>Project status:</b> <span class='pretired'>Retired</span>");
     }
 
-    // TLP Owner?
-    if (project.pmc) {
-	if (project.pmc.match(/http:\/\/([a-z0-9]+)/i)) {
-	    project.pmc = project.pmc.match(/http:\/\/([a-z0-9]+)/i)[1];
-	}
-    } else {
-	project.pmc = tlpId;
-    }
     if (!tlpsByName[project.name] && tlps[project.pmc]) {
 	appendLiInnerHTML(ul, "<b>Sub-project of:</b> <a href='/project.html?" +
project.pmc + "'>" + tlps[project.pmc].name + "</a>");
     }



Mime
View raw message