Re: first little patch for projects-new.apache.org

2015-03-19 Thread Hervé BOUTEMY
Le jeudi 19 mars 2015 12:20:08 Rich Bowen a écrit :
> Thanks, Herve. I've applied all of your patches. Sorry for the long
> delay. Thanks so much for helping out.
thank you Rich
I'll wait for the permission opening to continue improvements (I already know 
a few little steps to do)

then, before switching, we'll need to discuss about:
- project's DOAP future
- previous site with site-dev@

Regards,

Hervé

> 
> On 03/08/2015 12:56 PM, Hervé BOUTEMY wrote:
> > avoid copy paste for TLP vs sub-project icon and put the icon on the
> > left to have full alignment



Re: first little patch for projects-new.apache.org

2015-03-19 Thread Rich Bowen



On 03/09/2015 06:46 AM, Daniel Gruno wrote:

Can someone apply Hervé's patches, so it's not just me doing all the
commits on this project? :) Thanks!


Done. Sorry for the delay.



With regards,
Daniel.

On 2015-03-08 18:01, Hervé BOUTEMY wrote:

IMHO, icons for incubating and Attic projects should be different than
standard
sub-project (no idea about rendering of such icons)

Regards,

Hervé

Le dimanche 8 mars 2015 17:56:52 Hervé BOUTEMY a écrit :

next: avoid copy paste for TLP vs sub-project icon and put the icon
on the
left to have full alignment

Regards,

Hervé

Le dimanche 8 mars 2015 17:43:49 Hervé BOUTEMY a écrit :

and a third one: just white background instead of black

Regards,

Hervé

Le dimanche 8 mars 2015 17:29:56 Hervé BOUTEMY a écrit :

another one, with simple instructions to make local tests

Regards,

Hervé

Le dimanche 8 mars 2015 17:23:36 Hervé BOUTEMY a écrit :

Hi,

As promise, here is a first little patch: this is simply to add a
link
to
our license, per our policy :)

Regards,

Hervé





--
Rich Bowen - rbo...@rcbowen.com - @rbowen
http://apachecon.com/ - @apachecon


Re: first little patch for projects-new.apache.org

2015-03-19 Thread Rich Bowen
Thanks, Herve. I've applied all of your patches. Sorry for the long 
delay. Thanks so much for helping out.


On 03/08/2015 12:56 PM, Hervé BOUTEMY wrote:

avoid copy paste for TLP vs sub-project icon and put the icon on the
left to have full alignment



--
Rich Bowen - rbo...@rcbowen.com - @rbowen
http://apachecon.com/ - @apachecon


Re: first little patch for projects-new.apache.org

2015-03-09 Thread Daniel Gruno
Can someone apply Hervé's patches, so it's not just me doing all the 
commits on this project? :) Thanks!


With regards,
Daniel.

On 2015-03-08 18:01, Hervé BOUTEMY wrote:

IMHO, icons for incubating and Attic projects should be different than standard
sub-project (no idea about rendering of such icons)

Regards,

Hervé

Le dimanche 8 mars 2015 17:56:52 Hervé BOUTEMY a écrit :

next: avoid copy paste for TLP vs sub-project icon and put the icon on the
left to have full alignment

Regards,

Hervé

Le dimanche 8 mars 2015 17:43:49 Hervé BOUTEMY a écrit :

and a third one: just white background instead of black

Regards,

Hervé

Le dimanche 8 mars 2015 17:29:56 Hervé BOUTEMY a écrit :

another one, with simple instructions to make local tests

Regards,

Hervé

Le dimanche 8 mars 2015 17:23:36 Hervé BOUTEMY a écrit :

Hi,

As promise, here is a first little patch: this is simply to add a link
to
our license, per our policy :)

Regards,

Hervé




Re: first little patch for projects-new.apache.org

2015-03-08 Thread Hervé BOUTEMY
IMHO, icons for incubating and Attic projects should be different than standard 
sub-project (no idea about rendering of such icons)

Regards,

Hervé

Le dimanche 8 mars 2015 17:56:52 Hervé BOUTEMY a écrit :
> next: avoid copy paste for TLP vs sub-project icon and put the icon on the
> left to have full alignment
> 
> Regards,
> 
> Hervé
> 
> Le dimanche 8 mars 2015 17:43:49 Hervé BOUTEMY a écrit :
> > and a third one: just white background instead of black
> > 
> > Regards,
> > 
> > Hervé
> > 
> > Le dimanche 8 mars 2015 17:29:56 Hervé BOUTEMY a écrit :
> > > another one, with simple instructions to make local tests
> > > 
> > > Regards,
> > > 
> > > Hervé
> > > 
> > > Le dimanche 8 mars 2015 17:23:36 Hervé BOUTEMY a écrit :
> > > > Hi,
> > > > 
> > > > As promise, here is a first little patch: this is simply to add a link
> > > > to
> > > > our license, per our policy :)
> > > > 
> > > > Regards,
> > > > 
> > > > Hervé



Re: first little patch for projects-new.apache.org

2015-03-08 Thread Hervé BOUTEMY
next: avoid copy paste for TLP vs sub-project icon and put the icon on the 
left to have full alignment

Regards,

Hervé

Le dimanche 8 mars 2015 17:43:49 Hervé BOUTEMY a écrit :
> and a third one: just white background instead of black
> 
> Regards,
> 
> Hervé
> 
> Le dimanche 8 mars 2015 17:29:56 Hervé BOUTEMY a écrit :
> > another one, with simple instructions to make local tests
> > 
> > Regards,
> > 
> > Hervé
> > 
> > Le dimanche 8 mars 2015 17:23:36 Hervé BOUTEMY a écrit :
> > > Hi,
> > > 
> > > As promise, here is a first little patch: this is simply to add a link
> > > to
> > > our license, per our policy :)
> > > 
> > > Regards,
> > > 
> > > Hervé
Index: js/projects.js
===
--- js/projects.js	(révision 1665047)
+++ js/projects.js	(copie de travail)
@@ -475,6 +475,14 @@
 return str.replace(/^([a-z])(.+)$/, function(c,a,b) { return a.toUpperCase() + b.toLowerCase() } );
 }
 
+function projectIcon(name) {
+if (isTLP(name)) {
+	return ""
+} else {
+	return ""
+}
+}
+
 function renderProjectsList(cat) {
 
 var obj = document.getElementById('contents');
@@ -502,12 +510,7 @@
 	for (i in arr) {
 	project = arr[i]
 	var li = document.createElement('li');
-	li.innerHTML = "" + projects[project].name + "";
-	if (isTLP(projects[project].name)) {
-		li.innerHTML += ""
-	} else {
-		li.innerHTML += ""
-	}
+	li.innerHTML = projectIcon(projects[project].name) + "" + projects[project].name + "";
 	ul.appendChild(li)
 	}
 	obj.appendChild(ul);
@@ -551,12 +554,7 @@
 		for (x in a) {
 			if (a[x].toLowerCase() == lang.toLowerCase()) {
 			var cli = document.createElement('li');
-			cli.innerHTML = "" + projects[i].name + "";
-			if (isTLP(projects[i].name)) {
-cli.innerHTML += ""
-			} else {
-cli.innerHTML += ""
-			}
+			cli.innerHTML = projectIcon(projects[i].name) + "" + projects[i].name + "";
 			cul.appendChild(cli)
 			}
 		}
@@ -609,12 +607,7 @@
 			a[x] = a[x].replace("http://projects.apache.org/category/";, "").toLowerCase();
 			if (a[x] == lang) {
 			var cli = document.createElement('li');
-			cli.innerHTML = "" + projects[i].name + "";
-			if (isTLP(projects[i].name)) {
-cli.innerHTML += ""
-			} else {
-cli.innerHTML += ""
-			}
+			cli.innerHTML = projectIcon(projects[i].name) + "" + projects[i].name + "";
 			cul.appendChild(cli)
 			}
 		}
@@ -662,12 +655,7 @@
 		xdate = committees[projects[i].name]
 		if (xdate == date) {
 			var cli = document.createElement('li');
-			cli.innerHTML = "" + projects[i].name + "";
-			if (isTLP(projects[i].name)) {
-			cli.innerHTML += ""
-			} else {
-			cli.innerHTML += ""
-			}
+			cli.innerHTML = projectIcon(projects[i].name) + "" + projects[i].name + "";
 			cul.appendChild(cli)
 		}
 		 }
@@ -712,12 +700,7 @@
 			var cli = document.createElement('li');
 			cli.innerHTML = "" + projects[i].name + ": " + len + " committers";
 			if (unixgroups[i+'-pmc']) {
-			cli.innerHTML += ", " + unixgroups[i+'-pmc'].length + " PMC members";
-			if (isTLP(projects[i].name)) {
-cli.innerHTML += ""
-			} else {
-cli.innerHTML += ""
-			}
+			cli.innerHTML = projectIcon(projects[i].name) + cli.innerHTML + ", " + unixgroups[i+'-pmc'].length + " PMC members";
 			}
 			ul.appendChild(cli)
 		}
@@ -771,12 +754,7 @@
 		xlpmc = projects[i].pmc
 		if (xlpmc == lpmc) {
 			var cli = document.createElement('li');
-			cli.innerHTML = "" + projects[i].name + "";
-			if (isTLP(projects[i].name)) {
-			cli.innerHTML += ""
-			} else {
-			cli.innerHTML += ""
-			}
+			cli.innerHTML = projectIcon(projects[i].name) + "" + projects[i].name + "";
 			cul.appendChild(cli)
 		}
 		 }


Re: first little patch for projects-new.apache.org

2015-03-08 Thread Hervé BOUTEMY
and a third one: just white background instead of black

Regards,

Hervé

Le dimanche 8 mars 2015 17:29:56 Hervé BOUTEMY a écrit :
> another one, with simple instructions to make local tests
> 
> Regards,
> 
> Hervé
> 
> Le dimanche 8 mars 2015 17:23:36 Hervé BOUTEMY a écrit :
> > Hi,
> > 
> > As promise, here is a first little patch: this is simply to add a link to
> > our license, per our policy :)
> > 
> > Regards,
> > 
> > Hervé
Index: styles.css
===
--- styles.css	(révision 1665047)
+++ styles.css	(copie de travail)
@@ -105,7 +105,7 @@
 }
 body {
 font: 15px/1.5 Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif;
-background-color: #666;
+background-color: #fff;
 }
 
 .leftbar {
@@ -194,7 +194,6 @@
 }
 
 #footer {
-  color: #DDD;
   font-style: italic;
   font-size: small;
   text-align: center;


Re: first little patch for projects-new.apache.org

2015-03-08 Thread Hervé BOUTEMY
another one, with simple instructions to make local tests

Regards,

Hervé

Le dimanche 8 mars 2015 17:23:36 Hervé BOUTEMY a écrit :
> Hi,
> 
> As promise, here is a first little patch: this is simply to add a link to
> our license, per our policy :)
> 
> Regards,
> 
> Hervé
Index: STRUCTURE.txt
===
--- STRUCTURE.txt	(révision 1664978)
+++ STRUCTURE.txt	(copie de travail)
@@ -4,20 +4,20 @@
 - Contains scripts used for import and maintenance of foundation-wide
   data, such as committer IDs/names, project VPs, founding dates,
   reporting cycles etc.
-
+
 /site:
 - Contains the HTML, images and javascript needed to run the site
-
+
 /site/json:
 - Contains the JSON data storage
-
+
 /site/json/foundation:
 - Contains foundation-wide JSON data (committers, chairs, podling
   evolution etc)
-
+
 /site/projects:
 - Contains project-specific base data.
-
+
 Suggested cron setup:
 scripts/cronjobs/parsechairs.py - daily
 scripts/cronjobs/parsecomitters.py - daily/hourly (whatever we need/want)
@@ -28,4 +28,8 @@
 scripts/import/parsecommittees.py - requires committee-info.txt to be present
 scripts/import/addpmc.py - manual run whenever a new PMC is founded
 
-
\ No newline at end of file
+Webserver required:
+To test the site locally, a webserver is required or you'll get
+"Cross origin requests are only supported for HTTP" errors.
+An easy setup is: run "python -m SimpleHTTPServer " from site directory
+to have site available at http://localhost:/


first little patch for projects-new.apache.org

2015-03-08 Thread Hervé BOUTEMY
Hi,

As promise, here is a first little patch: this is simply to add a link to our 
license, per our policy :)

Regards,

HervéIndex: datatables.html
===
--- datatables.html	(révision 1665047)
+++ datatables.html	(copie de travail)
@@ -52,7 +52,7 @@

 
 
-   Copyright© 2015, the Apache Software Foundation. Licensed under the Apache License v/2.0
+   Copyright© 2015, the Apache Software Foundation. Licensed under the http://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 2.0
For inquiries, contact dev@community.apache.org.
 
 
Index: index.html
===
--- index.html	(révision 1665047)
+++ index.html	(copie de travail)
@@ -40,7 +40,7 @@

 
 
-   Copyright© 2015, the Apache Software Foundation. Licensed under the Apache License v/2.0
+   Copyright© 2015, the Apache Software Foundation. Licensed under the http://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 2.0
For inquiries, contact dev@community.apache.org.