community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1685312 - /comdev/projects.apache.org/site/js/projects.js
Date Sat, 13 Jun 2015 19:43:38 GMT
Author: hboutemy
Date: Sat Jun 13 19:43:38 2015
New Revision: 1685312

URL: http://svn.apache.org/r1685312
Log:
added releases to project page

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=1685312&r1=1685311&r2=1685312&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Sat Jun 13 19:43:38 2015
@@ -340,9 +340,6 @@ function renderProjectPage(project, proj
     } else {
         appendLiInnerHTML(ul, "<b>Project status:</b> <span class='pretired'>Retired</span>");
     }
-    if (project['download-page']) {
-        appendLiInnerHTML(ul, "<b>Download:</b> <a href='" + project['download-page']
+ "' target='_blank'>" + project['download-page'] + "</a>");
-    }
 
     // Committers
     if (isIncubating && unixgroups[unixgroup]) {
@@ -432,6 +429,21 @@ function renderProjectPage(project, proj
         }
         obj.appendChild(ul);
     }
+
+    // releases
+    appendElementWithInnerHTML(obj,'h4',"Releases:");
+    ul = document.createElement('ul');
+    if (project['download-page']) {
+        appendLiInnerHTML(ul, "<b>Download:</b> <a href='" + project['download-page']
+ "' target='_blank'>" + project['download-page'] + "</a>");
+    }
+    if (project.release) {
+        var r;
+        for (r in project.release) {
+            r = project.release[r];
+            appendLiInnerHTML(ul, "<b>" + r.revision + "</b> (" + r.created +
"): " + r.name);
+        }
+    }
+    obj.appendChild(ul);
 }
 
 



Mime
View raw message