Author: hboutemy
Date: Fri Nov 18 08:32:56 2016
New Revision: 1770330

URL: http://svn.apache.org/viewvc?rev=1770330&view=rev
Log:
updated comdev handling

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=1770330&r1=1770329&r2=1770330&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Fri Nov 18 08:32:56 2016
@@ -285,11 +285,13 @@ function renderProjectPage(project, proj
     if (projectId.indexOf("incubator-") == 0) {
         unixgroup = projectId.split("-")[1]
     }
-    // special case: empire-db
+    // special cases
     if (unixgroup == "empire") unixgroup = "empire-db";
+    if (unixgroup == "community") unixgroup = "comdev";
     if (project && project.pmc == "attic") {
         unixgroup = "attic";
     }
+
     var committeeId = isIncubating ? 'incubator' : unixgroup;
     if (!committees[unixgroup]) {
         // at least one committee has a unix group that is different from 
committee id: webservices (group=ws), see parsecommittees.py#group_ids
@@ -589,9 +591,9 @@ function renderCommitteePage(committeeId
         }
     }
     if (subprojects.length == 0) {
-       if ((committeeId != 'comdev') && (committeeId != 'labs')) {
+       if (committeeId != 'labs') {
            // if a committee did not declare any project, consider there is a 
default one with the id of the committee
-            // only Labs and Community Development don't manage projects
+            // only Labs doesn't manage projects
             subprojects.push({ 'id': committeeId, 'name': committee.name, 
'pmc': committeeId });
         }
     } else {
@@ -878,7 +880,7 @@ function renderProjectsByCommittee() {
         var c = dcount[lpmc];
         var li = document.createElement('li');
         var cul = document.createElement('ul');
-        if (c == 0 && lpmc != 'comdev' && lpmc != 'labs') {
+        if (c == 0 && lpmc != 'labs') {
             appendLiInnerHTML(cul, projectIcon(committees[lpmc].name) + "<a 
href='project.html?" + lpmc + "'>" + committees[lpmc].name + "</a>");
             c = 1;
         } else {


Reply via email to