From 86c489be72ce0b48fd52419441d6a235febc6fae Mon Sep 17 00:00:00 2001 From: Roscoe Date: Mon, 8 Sep 2025 04:32:18 +0100 Subject: [PATCH] Improve tape listing (add thumbnails, extra info, make it a table) --- app/views/tapes/index.html.erb | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/app/views/tapes/index.html.erb b/app/views/tapes/index.html.erb index 0e3eaa8..0421520 100644 --- a/app/views/tapes/index.html.erb +++ b/app/views/tapes/index.html.erb @@ -2,10 +2,27 @@ <%= link_to "New tape", new_tape_path if authenticated? %> -
+ + + + + + + <% @tapes.each do |tape| %> -
- <%= link_to tape.title, tape %> -
+ + + + + + <% end %> \ No newline at end of file
PreviewTitleUpdated atCreated at
+ <%= link_to (image_tag url_for(tape.video.preview(resize_to_limit: [160, 120]).processed)), tape %> + + <%= link_to tape.title, tape %> + + <%= tape.updated_at %> + + <%= tape.created_at %> +