From stephane.blondon at gmail.com Mon Dec 2 00:05:29 2013 From: stephane.blondon at gmail.com (=?UTF-8?Q?St=C3=A9phane_Blondon?=) Date: Mon, 2 Dec 2013 01:05:29 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: <20131127112913.GB20484@yellowpig> References: <20131105105435.GB10999@yellowpig> <20131106172130.GA11307@yellowpig> <20131110102918.GB30195@yellowpig> <20131127112913.GB20484@yellowpig> Message-ID: Hello everyone, 2013/11/27 Bill Allombert : >> I plan to provide a patch against the perl script if it's ok for you. > > Please do. There are a patch and the modified file in attachments. I executed it to check the modified generated files and I didn't see errors. Could anyone check too? I'm not a Perl developper so you can can improve my patch too. > If you like, you can move the templates to separated files that will > be read by the perl script. With the patch, the html is not extracted in external templates. Do you think about using a template engine or just extracting the content of the html strings in .html files which would be read by the script? Cheers, -- Imprimez ce message en A2 et en couleur au moins 500 fois! Br?lez des arbres!! -- envoy? depuis ma centrale ? charbon St?phane -------------- next part -------------- A non-text attachment was scrubbed... Name: popcon.pl Type: application/x-perl Size: 18144 bytes Desc: not available URL: From stephane.blondon at gmail.com Mon Dec 2 00:07:25 2013 From: stephane.blondon at gmail.com (=?UTF-8?Q?St=C3=A9phane_Blondon?=) Date: Mon, 2 Dec 2013 01:07:25 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: References: <20131105105435.GB10999@yellowpig> <20131106172130.GA11307@yellowpig> <20131110102918.GB30195@yellowpig> <20131127112913.GB20484@yellowpig> Message-ID: 2013/12/2 St?phane Blondon : > There are a patch and the modified file in attachments. ...and the patch I forgot to send. -- Imprimez ce message en A2 et en couleur au moins 500 fois! Br?lez des arbres!! -- envoy? depuis ma centrale ? charbon St?phane -------------- next part -------------- --- popcon.orig.pl 2013-12-01 14:02:13.878265012 +0100 +++ popcon.pl 2013-12-02 00:24:07.707788036 +0100 @@ -48,54 +48,51 @@ sub htmlheader { + my $name = $_[0]; + my $report_label = $poptext{$name}; print HTML <<"EOH"; - Debian Popularity Contest - - - - - -
- - - - - - - - - - -
- - - Debian Popularity Contest - - -
- - - -
+ Debian Popularity Contest + + + + + + + EOH } sub popconintro { - my ($name,$page) = @_; - &htmlheader; + my ($name, $page) = @_; + &htmlheader($name); print HTML <<"EOF"; +
+

Debian Popularity Contest

The popularity contest project is an attempt to map the usage of Debian packages. This site publishes the statistics gathered from report sent by users of the README and the FAQ. -

+ +

To participate in this survey, install the popularity-contest package.

+

Popcon statistics for source package

    @@ -144,10 +153,13 @@ EOF } -sub htmlfooter +sub rawresults { - my ($numsub) = @_; - my $date=gmtime(); + my ($numsub) = $_[0]; + my ($popfile) = $_[1]; + print HTML "

    \n"; + print HTML "Raw popularity-contest results\n"; + print HTML "

    \n"; print HTML < inst : number of people who installed this package; @@ -159,20 +171,21 @@

    Number of submissions considered: $numsub -

    -To participate in this survey, install the popularity-contest package.

    EOF - print HTML < -
- -Made by Bill Allombert . Last generated on $date UTC.
+} + +sub htmlfooter +{ + my $date=gmtime(); + print HTML < +Made by Bill Allombert. Last generated on $date UTC.
Popularity-contest project by Avery Pennarun, Bill Allombert and Petter Reinholdtsen.
-Copyright (C) 2004-2005 SPI; -See license terms. -
+Copyright (C) 2004-2013 SPI; +See license terms. +
EOH @@ -377,7 +390,8 @@ print HTML ("\n"); } print HTML ("\n \n"); - htmlfooter $numsub; + rawresults($numsub, $popfile); + htmlfooter; closedir SEC; close HTML; } @@ -412,12 +426,14 @@ print HTML ("\n"); } print HTML ("\n \n"); - htmlfooter $numsub; + rawresults($numsub, $popfile); + htmlfooter; closedir SEC; close HTML; } open HTML , ">:utf8", "$popcon/index.html"; popconintro($name,"index.html"); + printf HTML ("

Download

"); printf HTML ("

Statistics for the whole archive sorted by fields:

");
   print_by (".",$_) for (@fields);
   print HTML ("
\n

\n"); @@ -446,12 +462,14 @@ print_by ($dir,$_) for (@fields); print HTML ("\n"); } + printf HTML ("\n"); + rawresults($numsub, $popfile); print HTML <<'EOF'; - + +

Statistics per Debian architectures

-
-Statistics per Debian architectures: +
 EOF
     for $f (grep { $_ ne 'unknown' } sort keys %arch)
@@ -478,10 +496,14 @@
   
+ + EOF print HTML <<'EOF'; - -Statistics per popularity-contest releases: +

Statistics per popularity-contest releases

+ + +
 EOF
     for $f (grep { $_ ne 'unknown' } sort keys %release)
@@ -507,10 +529,11 @@
     
+ +

+

EOF - print HTML "

\n"; - print HTML "Raw popularity-contest results\n"; - htmlfooter $numsub; + htmlfooter; close HTML; } From stephane.blondon at gmail.com Sat Dec 7 15:58:48 2013 From: stephane.blondon at gmail.com (=?UTF-8?Q?St=C3=A9phane_Blondon?=) Date: Sat, 7 Dec 2013 16:58:48 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: References: <20131105105435.GB10999@yellowpig> <20131106172130.GA11307@yellowpig> <20131110102918.GB30195@yellowpig> <20131127112913.GB20484@yellowpig> Message-ID: 2013/12/2 St?phane Blondon : > There are a patch and the modified file in attachments. > I executed it to check the modified generated files and I didn't see > errors. Could anyone check too? There were no reply to this re-mail so I suppose the patch is ok (or no one checks?). So ,what is the next step? What can I do to help you? Cheers, -- Imprimez ce message en A2 et en couleur au moins 500 fois! Br?lez des arbres!! -- envoy? depuis ma centrale ? charbon St?phane From ballombe at debian.org Sat Dec 7 20:45:51 2013 From: ballombe at debian.org (Bill Allombert) Date: Sat, 7 Dec 2013 21:45:51 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: References: <20131106172130.GA11307@yellowpig> <20131110102918.GB30195@yellowpig> <20131127112913.GB20484@yellowpig> Message-ID: <20131207204551.GB9975@yellowpig> On Sat, Dec 07, 2013 at 04:58:48PM +0100, St?phane Blondon wrote: > 2013/12/2 St?phane Blondon : > > There are a patch and the modified file in attachments. > > I executed it to check the modified generated files and I didn't see > > errors. Could anyone check too? > > There were no reply to this re-mail so I suppose the patch is ok (or > no one checks?). I had a look at your patch, but I did not have time to run it yet. Cheers, -- Bill. Imagine a large red swirl here. From ballombe at debian.org Sun Dec 8 21:08:48 2013 From: ballombe at debian.org (Bill Allombert) Date: Sun, 8 Dec 2013 22:08:48 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: <20131207204551.GB9975@yellowpig> References: <20131106172130.GA11307@yellowpig> <20131110102918.GB30195@yellowpig> <20131127112913.GB20484@yellowpig> <20131207204551.GB9975@yellowpig> Message-ID: <20131208210848.GH9975@yellowpig> On Sat, Dec 07, 2013 at 09:45:51PM +0100, Bill Allombert wrote: > On Sat, Dec 07, 2013 at 04:58:48PM +0100, St?phane Blondon wrote: > > 2013/12/2 St?phane Blondon : > > > There are a patch and the modified file in attachments. > > > I executed it to check the modified generated files and I didn't see > > > errors. Could anyone check too? > > > > There were no reply to this re-mail so I suppose the patch is ok (or > > no one checks?). > > I had a look at your patch, but I did not have time to run it yet. OK, I have changed popcon.debian.org to use your script. I did not see any problem. Please check it is OK. Something we should fix is the line Copyright (C) 2004-2013 SPI; See license terms. I copied it from the old layout, and the intent was that it only applied to the part I copied, but it was not stated. (P.S.: Tell me if you prefer I do not CC you.) Cheers, -- Bill. Imagine a large red swirl here. From stephane.blondon at gmail.com Wed Dec 11 22:55:57 2013 From: stephane.blondon at gmail.com (=?UTF-8?Q?St=C3=A9phane_Blondon?=) Date: Wed, 11 Dec 2013 23:55:57 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: <20131208210848.GH9975@yellowpig> References: <20131106172130.GA11307@yellowpig> <20131110102918.GB30195@yellowpig> <20131127112913.GB20484@yellowpig> <20131207204551.GB9975@yellowpig> <20131208210848.GH9975@yellowpig> Message-ID: Hello, 2013/12/8 Bill Allombert : > OK, I have changed popcon.debian.org to use your script. > I did not see any problem. Please check it is OK. Thank you for the commit! I checked the web pages and I didn't saw problems. > Something we should fix is the line > > Copyright (C) 2004-2013 SPI; See license terms. > > I copied it from the old layout, and the intent was that it only applied > to the part I copied, but it was not stated. > > (P.S.: Tell me if you prefer I do not CC you.) Until the code rests under free software, I don't mind. Please keep me in cc, so I will know the final choice. Cheers -- Imprimez ce message en A2 et en couleur au moins 500 fois! Br?lez des arbres!! -- envoy? depuis ma centrale ? charbon St?phane From ballombe at debian.org Sat Dec 14 23:14:55 2013 From: ballombe at debian.org (Bill Allombert) Date: Sun, 15 Dec 2013 00:14:55 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: References: <20131110102918.GB30195@yellowpig> <20131127112913.GB20484@yellowpig> <20131207204551.GB9975@yellowpig> <20131208210848.GH9975@yellowpig> Message-ID: <20131214231455.GA30410@yellowpig> On Wed, Dec 11, 2013 at 11:55:57PM +0100, St?phane Blondon wrote: > Hello, > > 2013/12/8 Bill Allombert : > > OK, I have changed popcon.debian.org to use your script. > > I did not see any problem. Please check it is OK. > > Thank you for the commit! > I checked the web pages and I didn't saw problems. The secondary pages like still carry Raw popularity-contest results and Number of submissions considered: 160932 maybe we should remove them. Also maybe the secondary pagaes should carry a different 'breadcrumbs' (/ Debian Popularity Contest / All reports) > > Something we should fix is the line > > > > Copyright (C) 2004-2013 SPI; See license terms. > > > > I copied it from the old layout, and the intent was that it only applied > > to the part I copied, but it was not stated. > > > > (P.S.: Tell me if you prefer I do not CC you.) > > Until the code rests under free software, I don't mind. In the new layout (on www.debian.org) it is stated Copyright ? 1997-2013 SPI and others; See license terms Debian is a registered trademark of Software in the Public Interest, Inc. instead. So we should update it. > Please keep me in cc, so I will know the final choice. OK, I was not sure if you were subscribed to the list. Thanks again for your work! Cheers, -- Bill. Imagine a large red swirl here. From stephane.blondon at gmail.com Mon Dec 16 22:57:55 2013 From: stephane.blondon at gmail.com (=?UTF-8?Q?St=C3=A9phane_Blondon?=) Date: Mon, 16 Dec 2013 23:57:55 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: <20131214231455.GA30410@yellowpig> References: <20131110102918.GB30195@yellowpig> <20131127112913.GB20484@yellowpig> <20131207204551.GB9975@yellowpig> <20131208210848.GH9975@yellowpig> <20131214231455.GA30410@yellowpig> Message-ID: Hello, 2013/12/15 Bill Allombert : >> Until the code rests under free software, I don't mind. > > In the new layout (on www.debian.org) it is stated > > Copyright ? 1997-2013 SPI and others; See license terms > Debian is a registered trademark of Software in the Public Interest, Inc. > > instead. So we should update it. Copy-paste the footer from the main website is really easy : a patch about it is attached to this e-mail. For the others remarks, I need more time so I will do it in few days. Everyone is allowed to make a patch before me. ;-) Have a nice day, -- Imprimez ce message en A2 et en couleur au moins 500 fois! Br?lez des arbres!! -- envoy? depuis ma centrale ? charbon St?phane -------------- next part -------------- --- popcon.orig.pl 2013-12-16 23:21:39.000000000 +0100 +++ popcon.pl 2013-12-16 23:33:34.962297204 +0100 @@ -182,9 +182,10 @@

From stephane.blondon at gmail.com Mon Dec 23 18:11:29 2013 From: stephane.blondon at gmail.com (=?UTF-8?Q?St=C3=A9phane_Blondon?=) Date: Mon, 23 Dec 2013 19:11:29 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: <20131214231455.GA30410@yellowpig> References: <20131110102918.GB30195@yellowpig> <20131127112913.GB20484@yellowpig> <20131207204551.GB9975@yellowpig> <20131208210848.GH9975@yellowpig> <20131214231455.GA30410@yellowpig> Message-ID: Hello, 2013/12/15 Bill Allombert : > The secondary pages like > > still carry > Raw popularity-contest results > and > Number of submissions considered: 160932 > > maybe we should remove them. > > Also maybe the secondary pagaes should carry a different 'breadcrumbs' > (/ Debian Popularity Contest / All reports) > I think the attached patch fixes those two remarks. The patch includes too the copy-paste-adapt from the mainsite debian footer to the popcon script. The patch includes a fix on secondary pages: the footer was inside the main content and not downside. It's possible this bug is old because it is caused by a div tag not closed. Is it OK for you? I didn't subscribe to the list because I help on this script but I don't plan to continue on popcon after this improvement task. Merry christmas and happy new year to everyone ! -- Imprimez ce message en A2 et en couleur au moins 500 fois! Br?lez des arbres!! -- envoy? depuis ma centrale ? charbon St?phane -------------- next part -------------- --- popcon.orig.pl 2013-12-16 23:21:39.000000000 +0100 +++ popcon.pl 2013-12-23 18:51:26.915905480 +0100 @@ -49,7 +49,12 @@ sub htmlheader { my $name = $_[0]; + my $sec = $_[1]; my $report_label = $poptext{$name}; + if ($sec){ + $report_label = "$poptext{$name} ($sec)"; + } + print HTML <<"EOH"; @@ -88,8 +93,13 @@ sub popconintro { - my ($name, $page) = @_; - &htmlheader($name); + my ($name, $sec, $htmlfile) = @_; + my $page = ${htmlfile}; + if ($sec) { + $page = "${sec}/${htmlfile}"; + } + + &htmlheader($name, $sec); print HTML <<"EOF";

Debian Popularity Contest

@@ -149,7 +159,6 @@ print HTML <<"EOF";
-
EOF } @@ -182,9 +191,10 @@ @@ -375,7 +385,8 @@ { open HTML , ">:utf8", "$popcon/$sec/index.html"; opendir SEC,"$popcon/$sec"; - popconintro($name,"$sec/index.html"); + popconintro($name, $sec, "index.html"); + printf HTML ("
"); printf HTML ("

Statistics for the section %-16s sorted by fields: ",$sec); print_by (".",$_) for (@fields); print HTML ("\n

\n"); @@ -390,7 +401,7 @@ print HTML ("\n"); } print HTML ("\n \n"); - rawresults($numsub, $popfile); + printf HTML ("
"); htmlfooter; closedir SEC; close HTML; @@ -399,7 +410,8 @@ { open HTML , ">:utf8", "$popcon/$sec/first.html"; opendir SEC,"$popcon/$sec"; - popconintro($name,"$sec/first.html"); + popconintro($name, $sec, "first.html"); + printf HTML ("
"); printf HTML ("

First package in section %-16s for fields: ",$sec); for $f (@fields) { @@ -426,13 +438,14 @@ print HTML ("\n"); } print HTML ("\n \n"); - rawresults($numsub, $popfile); + printf HTML ("

"); htmlfooter; closedir SEC; close HTML; } open HTML , ">:utf8", "$popcon/index.html"; - popconintro($name,"index.html"); + popconintro($name, "", "index.html"); + printf HTML ("
"); printf HTML ("

Download

"); printf HTML ("

Statistics for the whole archive sorted by fields:

");
   print_by (".",$_) for (@fields);
@@ -531,8 +544,9 @@
 
 
 

-

+

EOF + printf HTML ("
"); htmlfooter; close HTML; } From ballombe at debian.org Mon Dec 23 20:02:21 2013 From: ballombe at debian.org (Bill Allombert) Date: Mon, 23 Dec 2013 21:02:21 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: References: <20131127112913.GB20484@yellowpig> <20131207204551.GB9975@yellowpig> <20131208210848.GH9975@yellowpig> <20131214231455.GA30410@yellowpig> Message-ID: <20131223200221.GD31954@yellowpig> On Mon, Dec 23, 2013 at 07:11:29PM +0100, St?phane Blondon wrote: > Hello, > > 2013/12/15 Bill Allombert : > > The secondary pages like > > > > still carry > > Raw popularity-contest results > > and > > Number of submissions considered: 160932 > > > > maybe we should remove them. > > > > Also maybe the secondary pagaes should carry a different 'breadcrumbs' > > (/ Debian Popularity Contest / All reports) > > > > I think the attached patch fixes those two remarks. > The patch includes too the copy-paste-adapt from the mainsite debian > footer to the popcon script. > The patch includes a fix on secondary pages: the footer was inside the > main content and not downside. It's possible this bug is old because > it is caused by a div tag not closed. > > Is it OK for you? Yes, thought I have made some minor changes. You can check popcon.debian.org tomorrow for the new version. > I didn't subscribe to the list because I help on this script but I > don't plan to continue on popcon after this improvement task. And the list was down for most of the time anyway. Cheers, -- Bill. Imagine a large red swirl here. From stephane.blondon at gmail.com Thu Dec 26 12:59:15 2013 From: stephane.blondon at gmail.com (=?UTF-8?Q?St=C3=A9phane_Blondon?=) Date: Thu, 26 Dec 2013 13:59:15 +0100 Subject: [Popcon-developers] popcon page renders like the old style of the main debian website In-Reply-To: <20131223200221.GD31954@yellowpig> References: <20131127112913.GB20484@yellowpig> <20131207204551.GB9975@yellowpig> <20131208210848.GH9975@yellowpig> <20131214231455.GA30410@yellowpig> <20131223200221.GD31954@yellowpig> Message-ID: 2013/12/23 Bill Allombert : > Yes, thought I have made some minor changes. You can check popcon.debian.org > tomorrow for the new version. > I browsed popcon.debian.org and didn't see problems. I'm not sure but perhaps you added the explanations about what 'inst', 'vote', etc. means on secondary pages at the bottom of the pages. What do you think about including them as title attribute for each link so the user has the explanation where he needs it. If you prefer to keep this paragraph, I think we should remove the
 tags around it. I don't think there is a real reason for the
 tags and there is a new line between 'atime' and 'and ctime'
which is removable too.

What do you think about it ?

I saw a (probably very old) minor bug: the stats images are cutted at
the bottom and the 'i486' string is not properly displayed. The bottom
line of the square around the legend is not displayed too. Do you
think it's hard to fix?


Cheers,
-- 
Imprimez ce message en A2 et en couleur au moins 500 fois!
Br?lez des arbres!!

-- envoy? depuis ma centrale ? charbon
St?phane


From Bill.Allombert at math.u-bordeaux1.fr  Thu Dec 26 16:39:13 2013
From: Bill.Allombert at math.u-bordeaux1.fr (Bill Allombert)
Date: Thu, 26 Dec 2013 17:39:13 +0100
Subject: [Popcon-developers] popcon page renders like the old style of
 the main debian website
In-Reply-To: 
References: <20131127112913.GB20484@yellowpig>
 
 
 <20131207204551.GB9975@yellowpig> <20131208210848.GH9975@yellowpig>
 
 <20131214231455.GA30410@yellowpig>
 
 <20131223200221.GD31954@yellowpig>
 
Message-ID: <20131226163913.GA19305@yellowpig>

On Thu, Dec 26, 2013 at 01:59:15PM +0100, St?phane Blondon wrote:
> 2013/12/23 Bill Allombert :
> > Yes,  thought I have made some minor changes. You can check popcon.debian.org
> > tomorrow for the new version.
> >
> 
> I browsed popcon.debian.org and didn't see problems.
> 
> I'm not sure but perhaps you added the explanations about what 'inst',
> 'vote', etc. means on secondary pages at the bottom of the pages. 

Yes.

> What
> do you think about including them as title attribute for each link so
> the user has the explanation where he needs it.

How would that look ?

> If you prefer to keep this paragraph, I think we should remove the
> 
 tags around it. I don't think there is a real reason for the
> 
 tags and there is a new line between 'atime' and 'and ctime'
> which is removable too.

Yes this is a good suggestion.

> What do you think about it ?
> 
> I saw a (probably very old) minor bug: the stats images are cutted at
> the bottom and the 'i486' string is not properly displayed. The bottom
> line of the square around the legend is not displayed too. Do you
> think it's hard to fix?

The problem is that there are too many architectures to fit in the image. 
So either I increase the height of the image, or remove some architectures.
Neither options are very appealing.

Cheers,
Bill


From ballombe at debian.org  Fri Dec 27 16:21:45 2013
From: ballombe at debian.org (Bill Allombert)
Date: Fri, 27 Dec 2013 17:21:45 +0100
Subject: [Popcon-developers] popcon page renders like the old style of
 the main debian website
In-Reply-To: 
References: 
 <20131207204551.GB9975@yellowpig> <20131208210848.GH9975@yellowpig>
 
 <20131214231455.GA30410@yellowpig>
 
 <20131223200221.GD31954@yellowpig>
 
 <20131226163913.GA19305@yellowpig>
 
Message-ID: <20131227162145.GA2033@yellowpig>

On Fri, Dec 27, 2013 at 12:41:28PM +0100, St?phane Blondon wrote:
> >> I saw a (probably very old) minor bug: the stats images are cutted at
> >> the bottom and the 'i486' string is not properly displayed. The bottom
> >> line of the square around the legend is not displayed too. Do you
> >> think it's hard to fix?
> >
> > The problem is that there are too many architectures to fit in the image.
> > So either I increase the height of the image, or remove some architectures.
> > Neither options are very appealing.
> 
> Do you have to have increase the height a lot? Are There other
> architectures not displayed?

As an experiment, I have increased the height by 100px. 

> I found the 'i486' is included in the image but it's not in the list
> at the left of the image.

This is because there are no more entries for that architecture.
However i486, *** and dpkg were bogus, so I removed them.

Now we have the same issue with "version in use"

> If it's the only architecture not properly displayed, perhaps removing
> the black rectangle around the legend would be enough (the first
> architecture will be upper in the picture so every others
> architectures will be upper in the picture.)
> 
> Others solutions (?):
>  - the architectures in the picture could be on two columns;
>  - removing the architectures in the picture, and using the color at
> the matching architecture in the left column. (probably more complex
> and the missing i486 architecture in the left column is a problem).

I use libchart-perl, and I do not think such options exist.

Cheers,
-- 
Bill. 

Imagine a large red swirl here. 


From stephane.blondon at gmail.com  Fri Dec 27 11:41:28 2013
From: stephane.blondon at gmail.com (=?UTF-8?Q?St=C3=A9phane_Blondon?=)
Date: Fri, 27 Dec 2013 12:41:28 +0100
Subject: [Popcon-developers] popcon page renders like the old style of
 the main debian website
In-Reply-To: <20131226163913.GA19305@yellowpig>
References: <20131127112913.GB20484@yellowpig>
 
 
 <20131207204551.GB9975@yellowpig> <20131208210848.GH9975@yellowpig>
 
 <20131214231455.GA30410@yellowpig>
 
 <20131223200221.GD31954@yellowpig>
 
 <20131226163913.GA19305@yellowpig>
Message-ID: 

2013/12/26 Bill Allombert :
> On Thu, Dec 26, 2013 at 01:59:15PM +0100, St?phane Blondon wrote:
>> 2013/12/23 Bill Allombert :
>> What
>> do you think about including them as title attribute for each link so
>> the user has the explanation where he needs it.
>
> How would that look ?

There is a demo in the attached archive. It's a static page. If the
mouse is hover the link, the legend is displayed around the cursor.
(Do not care about the inappropriate links because of copy/paste for
having a quick demo.)


>> I saw a (probably very old) minor bug: the stats images are cutted at
>> the bottom and the 'i486' string is not properly displayed. The bottom
>> line of the square around the legend is not displayed too. Do you
>> think it's hard to fix?
>
> The problem is that there are too many architectures to fit in the image.
> So either I increase the height of the image, or remove some architectures.
> Neither options are very appealing.

Do you have to have increase the height a lot? Are There other
architectures not displayed?
I found the 'i486' is included in the image but it's not in the list
at the left of the image.

If it's the only architecture not properly displayed, perhaps removing
the black rectangle around the legend would be enough (the first
architecture will be upper in the picture so every others
architectures will be upper in the picture.)

Others solutions (?):
 - the architectures in the picture could be on two columns;
 - removing the architectures in the picture, and using the color at
the matching architecture in the left column. (probably more complex
and the missing i486 architecture in the left column is a problem).


Cheers,
-- 
Imprimez ce message en A2 et en couleur au moins 500 fois!
Br?lez des arbres!!

-- envoy? depuis ma centrale ? charbon
St?phane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: title_demo.tar.gz
Type: application/x-gzip
Size: 53392 bytes
Desc: not available
URL: 

From stephane.blondon at gmail.com  Sat Dec 28 23:59:18 2013
From: stephane.blondon at gmail.com (=?UTF-8?Q?St=C3=A9phane_Blondon?=)
Date: Sun, 29 Dec 2013 00:59:18 +0100
Subject: [Popcon-developers] popcon page renders like the old style of
 the main debian website
In-Reply-To: <20131227162145.GA2033@yellowpig>
References: 
 <20131207204551.GB9975@yellowpig> <20131208210848.GH9975@yellowpig>
 
 <20131214231455.GA30410@yellowpig>
 
 <20131223200221.GD31954@yellowpig>
 
 <20131226163913.GA19305@yellowpig>
 
 <20131227162145.GA2033@yellowpig>
Message-ID: 

2013/12/27 Bill Allombert :
> On Fri, Dec 27, 2013 at 12:41:28PM +0100, St?phane Blondon wrote:
>> Do you have to have increase the height a lot? Are There other
>> architectures not displayed?
>
> As an experiment, I have increased the height by 100px.
> [...]
> Now we have the same issue with "version in use"

Ok, I understand the problem.
Is it possible to not limit the height of the image (= the library
uses the size needed to write all the legend)? In such case, we could
do that and limit the displayed size by CSS. By adding a link on the
image, the user could click on it to watch the whole picture.
Could it be a good answer to the problem?


> I use libchart-perl, and I do not think such options exist.

You're right: I read quickly the API of libchart-perl and didn't find
such option (or equivalent).


Did you have time to check my demo about title on links attached to
the previous e-mail?


Have a nice sunday,
-- 
Imprimez ce message en A2 et en couleur au moins 500 fois!
Br?lez des arbres!!

-- envoy? depuis ma centrale ? charbon
St?phane