finish activity ui
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
class HomeController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
@user = current_user
|
||||
@logins = Login.where(user: @user)
|
||||
end
|
||||
end
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user