2023-03-09 21:37:33 -05:00
|
|
|
class StageManager
|
|
|
|
class IndexController
|
2023-03-02 13:24:24 -05:00
|
|
|
|
2023-03-09 21:37:33 -05:00
|
|
|
get '/' do
|
|
|
|
channels = Channel.reverse(:updated_at).limit(10).all()
|
|
|
|
videos = Video.reverse(:updated_at).limit(10).all()
|
2023-03-13 22:23:34 -04:00
|
|
|
active_projects = Video.where(starred: true).reverse(:updated_at).limit($conf.get('stgm.max_stars'))
|
2023-03-09 21:37:33 -05:00
|
|
|
erb :index, :locals => {
|
|
|
|
:title => 'Dashboard',
|
|
|
|
:channels => channels,
|
2023-03-13 22:23:34 -04:00
|
|
|
:videos => videos,
|
|
|
|
:active_projects => active_projects
|
2023-03-09 21:37:33 -05:00
|
|
|
}
|
|
|
|
end
|
2023-03-02 13:24:24 -05:00
|
|
|
|
2023-03-09 21:37:33 -05:00
|
|
|
end
|
2023-03-02 13:24:24 -05:00
|
|
|
end
|