18 lines
477 B
Ruby
18 lines
477 B
Ruby
class StageManager
|
|
class IndexController
|
|
|
|
get '/' do
|
|
channels = Channel.reverse(:updated_at).limit(10).all()
|
|
videos = Video.reverse(:updated_at).limit(10).all()
|
|
active_projects = Video.where(starred: true).reverse(:updated_at).limit($conf.get('stgm.max_stars'))
|
|
erb :index, :locals => {
|
|
:title => 'Dashboard',
|
|
:channels => channels,
|
|
:videos => videos,
|
|
:active_projects => active_projects
|
|
}
|
|
end
|
|
|
|
end
|
|
end
|