make homepage better-er

This commit is contained in:
Roscoe 2026-01-30 02:21:12 +00:00
commit 73edf81633
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE

View file

@ -1,8 +1,21 @@
<h2>Recently Updated</h2>
<ul id="clips">
<table id="clips" border="1">
<tr>
<th>Preview</th>
<th>Title</th>
<th>Category</th>
<th>Tags</th>
</tr>
<% @clips.each do |clip| %>
<li>
<%= link_to clip.title, clip %>
</li>
<tr>
<td><%= link_to (image_tag url_for(clip.video.preview(resize_to_limit: [160, 120]).processed)), clip %></td>
<td><%= link_to clip.title, clip %></td>
<td><%= link_to clip.category.name, clip.category %></td>
<td>
<% clip.tags.each_with_index do |tag, index| %>
<%= link_to tag.name, tag_path(tag) %><% if index < clip.tags.size - 1 %>, <% end %>
<% end %>
</ul>
</td>
</tr>
<% end %>
</table>