diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index fe2a98b..88c5f51 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,8 +1,21 @@
| Preview | +Title | +Category | +Tags | +
|---|---|---|---|
| <%= link_to (image_tag url_for(clip.video.preview(resize_to_limit: [160, 120]).processed)), clip %> | +<%= link_to clip.title, clip %> | +<%= link_to clip.category.name, clip.category %> | ++ <% clip.tags.each_with_index do |tag, index| %> + <%= link_to tag.name, tag_path(tag) %><% if index < clip.tags.size - 1 %>, <% end %> + <% end %> + | +