community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1685325 - /comdev/projects.apache.org/site/js/projects.js
Date Sat, 13 Jun 2015 20:39:03 GMT
Author: hboutemy
Date: Sat Jun 13 20:39:03 2015
New Revision: 1685325

URL: http://svn.apache.org/r1685325
Log:
support releases without date

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=1685325&r1=1685324&r2=1685325&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Sat Jun 13 20:39:03 2015
@@ -457,7 +457,11 @@ function renderProjectPage(project, proj
         var r;
         for (r in project.release) {
             r = project.release[r];
-            appendLiInnerHTML(ul, "<b>" + r.revision + "</b> (" + r.created +
"): " + r.name);
+            var html = "<b>" + r.revision + "</b>";
+            if (r.created) {
+                html += " (" + r.created + ")";
+            }
+            appendLiInnerHTML(ul, html + ": " + r.name);
         }
     }
     obj.appendChild(ul);



Mime
View raw message