Skip to content

Commit

Permalink
improve the stats widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Closs committed Jul 7, 2012
1 parent a339452 commit e536553
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion views/stats-widget.tt
@@ -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.