fix for stats (I think)

This commit is contained in:
Kyle Drake 2015-01-08 14:16:05 -08:00
parent 50bedaa442
commit 671aa53aae

View file

@ -68,7 +68,7 @@
</table>
<h2>Subscriptions</h2>
<h3>Current Recurring Revenue: <strong><%= format("$%.2f", @stats[:total_recurring_revenue]) %> (<%= format("$%.2f", @stats[:total_recurring_revenue]/12.0) %>/month)</strong>
<h3>Current Recurring Monthly Revenue: <strong><%= format("$%.2f", @stats[:total_recurring_revenue]) %> (<%= format("$%.2f", @stats[:total_recurring_revenue]*12) %>/year)</strong>
<br>
Active Subscriptions: <strong><%= @stats[:subscriptions].select {|s| s[:status] == 'active' }.length %></strong>
<br>