community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1669700 - /comdev/projects.apache.org/site/js/projects.js
Date Fri, 27 Mar 2015 22:53:43 GMT
Author: hboutemy
Date: Fri Mar 27 22:53:43 2015
New Revision: 1669700

URL: http://svn.apache.org/r1669700
Log:
add '(in the Attic)' to project names for projects in the Attic

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=1669700&r1=1669699&r2=1669700&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Fri Mar 27 22:53:43 2015
@@ -222,7 +222,7 @@ function newProject(form) {
 // ------------ Project information page ------------\\
 
 function renderProjectPage(json, state) {
-    
+
     var obj = document.getElementById('contents');
     var isTLP = false
     if ((!json || !json.name) && projects[state]) {
@@ -238,7 +238,7 @@ function renderProjectPage(json, state)
 	// Title + description
 	pt = "Top Level Project"
 	if ((!committees[json.name] && pmcs[json.pmc]) || json.name.match("Incubating",
"i")) {
-	    pt = "Sub-project"
+	    pt = (json.pmc == "attic") ? "in the Attic" : "Sub-project"
 	} else {
 	    isTLP = true
 	}
@@ -483,6 +483,11 @@ function projectIcon(name) {
     }
 }
 
+function projectLink(id) {
+    project = projects[id];
+    return "<a href='/project.html?" + id + "'>" + project.name + ( ( project.pmc ==
"attic" ) ? " (in the Attic)" : "" ) + "</a>"
+}
+
 function renderProjectsList(cat) {
 
     var obj = document.getElementById('contents');
@@ -510,7 +515,7 @@ function renderProjectsList(cat) {
 	for (i in arr) {
 	    project = arr[i]
 	    var li = document.createElement('li');
-	    li.innerHTML = projectIcon(projects[project].name) + "<a href='/project.html?" +
project + "'>" + projects[project].name + "</a>";
+	    li.innerHTML = projectIcon(projects[project].name) + projectLink(project);
 	    ul.appendChild(li)
 	}
 	obj.appendChild(ul);
@@ -554,7 +559,7 @@ function renderProjectsList(cat) {
 		    for (x in a) {
 			if (a[x].toLowerCase() == lang.toLowerCase()) {
 			    var cli = document.createElement('li');
-			    cli.innerHTML = projectIcon(projects[i].name) + "<a href='/project.html?" + i +
"'>" + projects[i].name + "</a>";
+			    cli.innerHTML = projectIcon(projects[i].name) + projectLink(i);
 			    cul.appendChild(cli)
 			}
 		    }
@@ -607,7 +612,7 @@ function renderProjectsList(cat) {
 			a[x] = a[x].replace("http://projects.apache.org/category/", "").toLowerCase();
 			if (a[x] == lang) {
 			    var cli = document.createElement('li');
-			    cli.innerHTML = projectIcon(projects[i].name) + "<a href='/project.html?" + i +
"'>" + projects[i].name + "</a>";
+			    cli.innerHTML = projectIcon(projects[i].name) + projectLink(i);
 			    cul.appendChild(cli)
 			}
 		    }
@@ -655,7 +660,7 @@ function renderProjectsList(cat) {
 		    xdate = committees[projects[i].name]
 		    if (xdate == date) {
 			var cli = document.createElement('li');
-			cli.innerHTML = projectIcon(projects[i].name) + "<a href='/project.html?" + i + "'>"
+ projects[i].name + "</a>";
+			cli.innerHTML = projectIcon(projects[i].name) + projectLink(i);
 			cul.appendChild(cli)
 		    }
 		 }
@@ -698,7 +703,7 @@ function renderProjectsList(cat) {
 		    var xlen = unixgroups[i].length
 		    if (xlen == len) {
 			var cli = document.createElement('li');
-			cli.innerHTML = "<a href='/project.html?" + i + "'>" + projects[i].name + "</a>:
" + len + " committers";
+			cli.innerHTML = projectLink(i) + ": " + len + " committers";
 			if (unixgroups[i+'-pmc']) {
 			    cli.innerHTML = projectIcon(projects[i].name) + cli.innerHTML + ", " + unixgroups[i+'-pmc'].length
+ " PMC members";
 			}
@@ -754,7 +759,7 @@ function renderProjectsList(cat) {
 		    xlpmc = projects[i].pmc
 		    if (xlpmc == lpmc) {
 			var cli = document.createElement('li');
-			cli.innerHTML = projectIcon(projects[i].name) + "<a href='/project.html?" + i + "'>"
+ projects[i].name + "</a>";
+			cli.innerHTML = projectIcon(projects[i].name) + projectLink(i);
 			cul.appendChild(cli)
 		    }
 		 }



Mime
View raw message