Improve tape listing (add thumbnails, extra info, make it a table)
This commit is contained in:
parent
8063246b68
commit
86c489be72
1 changed files with 21 additions and 4 deletions
|
|
@ -2,10 +2,27 @@
|
||||||
|
|
||||||
<%= link_to "New tape", new_tape_path if authenticated? %>
|
<%= link_to "New tape", new_tape_path if authenticated? %>
|
||||||
|
|
||||||
<div id="tapes">
|
<table id="tapes" border="1">
|
||||||
|
<tr>
|
||||||
|
<th>Preview</th>
|
||||||
|
<th>Title</th>
|
||||||
|
<th>Updated at</th>
|
||||||
|
<th>Created at</th>
|
||||||
|
</tr>
|
||||||
<% @tapes.each do |tape| %>
|
<% @tapes.each do |tape| %>
|
||||||
<div>
|
<tr>
|
||||||
<%= link_to tape.title, tape %>
|
<td>
|
||||||
</div>
|
<%= link_to (image_tag url_for(tape.video.preview(resize_to_limit: [160, 120]).processed)), tape %>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<%= link_to tape.title, tape %>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<%= tape.updated_at %>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<%= tape.created_at %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue