finish activity ui

This commit is contained in:
2025-06-22 08:51:48 +02:00
parent e79626972f
commit 7c14e469c9
19 changed files with 378 additions and 101 deletions

View File

@@ -1,8 +0,0 @@
class HomeController < ApplicationController
before_action :authenticate_user!
def index
@user = current_user
@logins = Login.where(user: @user)
end
end

View File

@@ -4,10 +4,12 @@ class StatisticsController < ApplicationController
def index
stats = Statistics.new(current_user)
@total_plays = stats.total_plays
@year_plays = stats.total_plays_year
@activity_by_day = stats.activity_by_day
@top_artists_all_time = stats.top_artists_all_time
@top_artists_year = stats.top_artists_year
@top_artists_upcoming = stats.top_artists_upcoming
@since_date = stats.since_date
@streak = stats.longest_streak
end
end