From 16e1c842b29cdce14b596a6e24c84dd5b9446cd7 Mon Sep 17 00:00:00 2001 From: Amaury Carrade Date: Mon, 27 Jan 2014 19:22:17 +0100 Subject: Formatage des nombres sur la page de stats --- app/views/index/stats.phtml | 58 ++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/app/views/index/stats.phtml b/app/views/index/stats.phtml index ae9db172b..b5c18813d 100644 --- a/app/views/index/stats.phtml +++ b/app/views/index/stats.phtml @@ -4,73 +4,73 @@

-

+

- - + + - - - + + + - - - + + + - - - + + + - - - + + +
 
repartition['main_stream']['total']?>repartition['all_feeds']['total']?>repartition['main_stream']['total']); ?>repartition['all_feeds']['total']); ?>
repartition['main_stream']['read']?>repartition['all_feeds']['read']?>repartition['main_stream']['read']); ?>repartition['all_feeds']['read']); ?>
repartition['main_stream']['unread']?>repartition['all_feeds']['unread']?>repartition['main_stream']['unread']); ?>repartition['all_feeds']['unread']); ?>
repartition['main_stream']['favorite']?>repartition['all_feeds']['favorite']?>repartition['main_stream']['favorite']); ?>repartition['all_feeds']['favorite']); ?>
-

+

-

+

-

+

-

+

- - - + + + - topFeed as $feed):?> + topFeed as $feed): ?> - - - + + + @@ -96,7 +96,7 @@ function initStats() { bars: {horizontal: false, show: true}, xaxis: {noTicks: 6, showLabels: false, tickDecimals: 0}, yaxis: {min: 0}, - mouse: {relative: true, track: true, trackDecimals: 0, trackFormatter: function(obj) {return obj.y;}} + mouse: {relative: true, track: true, trackDecimals: 0, trackFormatter: function(obj) {return numberFormat(obj.y);}} }); // Feed per category Flotr.draw(document.getElementById('statsFeedPerCategory'), @@ -106,7 +106,7 @@ function initStats() { pie: {explode: 10, show: true, labelFormatter: function(){return '';}}, xaxis: {showLabels: false}, yaxis: {showLabels: false}, - mouse: {relative: true, track: true, trackDecimals: 0, trackFormatter: function(obj) {return obj.series.label + ' - '+ obj.y + ' ('+ (obj.fraction * 100).toFixed(1) + '%)';}}, + mouse: {relative: true, track: true, trackDecimals: 0, trackFormatter: function(obj) {return obj.series.label + ' - '+ numberFormat(obj.y) + ' ('+ (obj.fraction * 100).toFixed(1) + '%)';}}, legend: {container: document.getElementById('statsFeedPerCategoryLegend'), noColumns: 3} }); // Entry per category @@ -117,7 +117,7 @@ function initStats() { pie: {explode: 10, show: true, labelFormatter: function(){return '';}}, xaxis: {showLabels: false}, yaxis: {showLabels: false}, - mouse: {relative: true, track: true, trackDecimals: 0, trackFormatter: function(obj) {return obj.series.label + ' - '+ obj.y + ' ('+ (obj.fraction * 100).toFixed(1) + '%)';}}, + mouse: {relative: true, track: true, trackDecimals: 0, trackFormatter: function(obj) {return obj.series.label + ' - '+ numberFormat(obj.y) + ' ('+ (obj.fraction * 100).toFixed(1) + '%)';}}, legend: {container: document.getElementById('statsEntryPerCategoryLegend'), noColumns: 3} }); } -- cgit v1.2.3