finish activity ui
This commit is contained in:
12
app/views/statistics/_longest_streak.html.erb
Normal file
12
app/views/statistics/_longest_streak.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="dashboard-widget dashboard-longest-streak">
|
||||
<% if streak %>
|
||||
<h3 class="widget-title">Longest Listening Streak</h3>
|
||||
<div class="widget-content">
|
||||
<div><strong>Streak:</strong> <%= streak[:length] %> days (<%= streak[:start_date].strftime('%b %d, %Y') %> – <%= streak[:end_date].strftime('%b %d, %Y') %>)</div>
|
||||
<div><strong>Total Plays:</strong> <%= streak[:total_plays] %></div>
|
||||
<div><strong>Most Played Song:</strong> <%= streak[:most_played_song] || 'N/A' %> <%= "(#{streak[:most_played_song_count]} plays)" if streak[:most_played_song] %></div>
|
||||
</div>
|
||||
<% else %>
|
||||
<div style="color: #888;">No listening streak yet. Start playing to build your first streak!</div>
|
||||
<% end %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user