Permalink
Browse files

Format numbers

  • Loading branch information...
1 parent 03b9304 commit 6237f63a208ac3bc719545fa4e9fbe6d62cf2d3f @Seldaek Seldaek committed Oct 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Packagist/WebBundle/Resources/views/Web/stats.html.twig
@@ -8,8 +8,8 @@
<p><img src="http://chart.apis.google.com/chart?chxr=0,0,{{ versions }}&amp;chxl=1:|{{ chart.months|join('|') }}&amp;chxt=y,x&amp;chs=900x250&amp;chds=0,{{ versions }},0,{{ versions }}&amp;cht=lc&amp;chco=0000FF,FF9900&amp;chd=t:{{ chart.versions|join(',') }}|{{ chart.packages|join(',') }}&amp;chdl=Versions|Packages&amp;chls=2|2" /></p>
<h2>Totals</h2>
- <p>{{ packages }} packages</p>
- <p>{{ versions }} versions</p>
- <p>{{ downloads }} packages installed since 2012-04-13</p>
+ <p>{{ packages|number_format(0, '.', " ") }} packages</p>
+ <p>{{ versions|number_format(0, '.', " ") }} versions</p>
+ <p>{{ downloads == 'N/A' ? downloads : downloads|number_format(0, '.', " ") }} packages installed since 2012-04-13</p>
</div>
{% endblock %}

0 comments on commit 6237f63

Please sign in to comment.