mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 01:56:03 +02:00
make the stats public, and cache
This commit is contained in:
parent
b7fe2ab8ee
commit
50bedaa442
5 changed files with 40 additions and 12 deletions
|
@ -69,7 +69,13 @@
|
|||
|
||||
<h2>Subscriptions</h2>
|
||||
<h3>Current Recurring Revenue: <strong><%= format("$%.2f", @stats[:total_recurring_revenue]) %> (<%= format("$%.2f", @stats[:total_recurring_revenue]/12.0) %>/month)</strong>
|
||||
<br>Active Subscriptions: <strong><%= @stats[:subscriptions].select {|s| s[:status] == 'active' }.length %></strong></h3>
|
||||
<br>
|
||||
Active Subscriptions: <strong><%= @stats[:subscriptions].select {|s| s[:status] == 'active' }.length %></strong>
|
||||
<br>
|
||||
Cancelled Subscriptions: <strong><%= @stats[:cancelled_subscriptions] %></strong>
|
||||
</h3>
|
||||
|
||||
<!--
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Status</th>
|
||||
|
@ -84,6 +90,7 @@
|
|||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
-->
|
||||
<p>
|
||||
</p>
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue