Updated video view page; added recently updated videos to dashboard

This commit is contained in:
2023-03-03 15:49:09 -05:00
parent e39728cb33
commit db74e26124
4 changed files with 45 additions and 14 deletions

View File

@ -2,9 +2,11 @@ namespace '/' do
get '' do
channels = Channel.reverse(:updated_at).limit(10).all()
videos = Video.reverse(:updated_at).limit(10).all()
erb :index, :locals => {
:title => 'Dashboard',
:channels => channels
:channels => channels,
:videos => videos
}
end