community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1714024 - /comdev/projects.apache.org/site/js/projects.js
Date Thu, 12 Nov 2015 11:51:45 GMT
Author: sebb
Date: Thu Nov 12 11:51:44 2015
New Revision: 1714024

URL: http://svn.apache.org/viewvc?rev=1714024&view=rev
Log:
Display the description and charter for committees

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=1714024&r1=1714023&r2=1714024&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Thu Nov 12 11:51:44 2015
@@ -495,6 +495,26 @@ function renderCommitteePage(committeeId
 
     obj.innerHTML = "<h1>" + committee.name + " Committee</h1>";
 
+    if (!_.isEmpty(committee.shortdesc)) {
+        description = committee.shortdesc;
+    } else {
+        description = "Missing from http://www.apache.org/#projects-list";
+    }
+
+    appendElementWithInnerHTML(obj, 'h4', "Description (from http://www.apache.org/#projects-list):");
+
+    appendElementWithInnerHTML(obj,'p',description.replace(/([^\r\n]+)\r?\n\r?\n/g,function(a)
{ return "<p>"+a+"</p>"}));
+
+    appendElementWithInnerHTML(obj, 'h4', "Charter (from PMC RDF file):");
+
+    if (!_.isEmpty(committee.charter)) {
+        charter = committee.charter;
+    } else {
+        charter = "Missing";
+    }
+
+    appendElementWithInnerHTML(obj,'p',charter.replace(/([^\r\n]+)\r?\n\r?\n/g,function(a)
{ return "<p>"+a+"</p>"}));
+
     var ul = document.createElement('ul');
 
     appendElementWithInnerHTML(obj, 'h4', "Committee data:");



Mime
View raw message