Added ability to mark or 'star' a video to keep a short list of active video projects

This commit is contained in:
2023-03-13 22:23:34 -04:00
parent 85750b4de4
commit f27154b705
8 changed files with 54 additions and 7 deletions

View File

@ -4,10 +4,12 @@ class StageManager
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
:videos => videos,
:active_projects => active_projects
}
end