Permalink
Browse files

improve the stats widget

  • Loading branch information...
1 parent a339452 commit e53655396a288101ed965b2fc8bf2314fe646389 Luke Closs committed Jul 7, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 views/stats-widget.tt
View
@@ -1,5 +1,10 @@
$(function() {
$(".vbc_stats").append(
- '<ul><li><strong>Current Price:</strong> $[% prices.fuel_price %]</li><li><strong>Members:</strong> [% stats.active_members %]</li><li><strong>Fuel Sold:</strong> [% stats.fuel_sold_alltime %] Litres</li><li><strong>CO2 Offset:</strong> [% stats.co2_reduction %]kg (<a href="http://www.biomaxfuels.com.au/carbon.html">source</a>)</li></ul>'
+ '<ul>'
+ + '<li><strong>Current Price:</strong> $[% prices.fuel_price %]</li>'
+ + '<li><strong>Estimated CO2 reduction:</strong> [% stats.co2_reduction %]kg (<a href="http://www.biomaxfuels.com.au/carbon.html">source</a>)</li>'
+ + '<li><strong>Registered Members:</strong> [% stats.active_members %]</li>'
+ + '<li><strong>Fuel Sold:</strong> [% stats.fuel_sold_alltime %] Litres</li>'
+ + '</ul>'
);
});

0 comments on commit e536553

Please sign in to comment.