Stats page
This commit is contained in:
@@ -15,6 +15,14 @@ class ApplicationController < ActionController::Base
|
||||
render partial: 'about'
|
||||
end
|
||||
|
||||
def stat
|
||||
@artists = Artist.count
|
||||
@albums = Album.count
|
||||
@tracks = Track.count
|
||||
@users = User.count
|
||||
render partial: 'stat'
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def authorize
|
||||
|
||||
Reference in New Issue
Block a user