community-commits mailing list archives

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

URL: http://svn.apache.org/r1679451
Log:
list projects in projects by PMC even if no DOAP file

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=1679451&r1=1679450&r2=1679451&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Thu May 14 20:20:22 2015
@@ -754,9 +754,11 @@ function renderProjectsList(cat) {
 	for (lpmc in tlps) {
             var c = dcount[lpmc];
 	    var li = document.createElement('li');
-	    li.innerHTML = "<h3><a id='" + lpmc + "'>" + tlps[lpmc].name + " (" + c
+ ")</a>" + (c>0?":": "") + "</h3>";
-            if (c > 0) {
-                var cul = document.createElement('ul');
+            var cul = document.createElement('ul');
+            if (c == 0) {
+                appendLiInnerHTML(cul, projectIcon(tlps[lpmc].name) + "<a href='/project.html?"
+ lpmc + "'>" + tlps[lpmc].name + "</a>");
+                c = 1;
+            } else {
                 for (i in projectsSorted) {
                     i = projectsSorted[i];
                     var project = projects[i];
@@ -771,8 +773,9 @@ function renderProjectsList(cat) {
                         }
                     }
                 }
-                li.appendChild(cul);
             }
+            li.innerHTML = "<h3><a id='" + lpmc + "'>" + tlps[lpmc].name + "
(" + c + ")</a>" + (c>0?":": "") + "</h3>";
+            li.appendChild(cul);
 	    ul.appendChild(li);
 	}
 	



Mime
View raw message