add nice statistics
This commit is contained in:
11
app/views/statistics/_total_plays.html.erb
Normal file
11
app/views/statistics/_total_plays.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<div style="background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 2em 2.5em;">
|
||||
<h2 style="margin-top:0; font-size: 1.4em; color: #0071e3;">Total Plays</h2>
|
||||
<div style="font-size: 2.5em; font-weight: 700; margin-top: 0.5em; color: #222;">
|
||||
<%= @total_plays %>
|
||||
</div>
|
||||
<% if defined?(@since_date) && @since_date.present? %>
|
||||
<div style="margin-top: 0.8em; color: #888; font-size: 1em; font-weight: 400;">
|
||||
since <%= @since_date.strftime('%b %-d, %Y') %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user