diff --git a/assets/styles/drake.scss b/assets/styles/drake.scss index 4e5910e..1a3b4ec 100644 --- a/assets/styles/drake.scss +++ b/assets/styles/drake.scss @@ -61,8 +61,10 @@ hr{ margin-bottom: 10px; } -#channel-header{ - .channel-name{ +#channel-header, +#video-header{ + .channel-name, + .video-name{ margin-bottom: 5px; } .channel-created, @@ -75,7 +77,8 @@ hr{ font-style: italic; } - .channel-description{ + .channel-description, + .video-description{ margin-top: 10px; font-size: 1.75rem; } diff --git a/lib/routes/index.rb b/lib/routes/index.rb index 67869c9..f486dbd 100644 --- a/lib/routes/index.rb +++ b/lib/routes/index.rb @@ -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 diff --git a/views/index.erb b/views/index.erb index 904a456..75662e2 100644 --- a/views/index.erb +++ b/views/index.erb @@ -8,6 +8,27 @@
Video name | +Video serial | +Video channel | +Last updated | +
---|---|---|---|
<%= v.name %> | +<%= serialize(v.serial) %> | +<%= v.channel.name %> | +<%= date_format(v.updated_at) %> | +