make homepage better-er
This commit is contained in:
parent
47c71a3935
commit
73edf81633
1 changed files with 18 additions and 5 deletions
|
|
@ -1,8 +1,21 @@
|
||||||
<h2>Recently Updated</h2>
|
<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| %>
|
<% @clips.each do |clip| %>
|
||||||
<li>
|
<tr>
|
||||||
<%= link_to clip.title, clip %>
|
<td><%= link_to (image_tag url_for(clip.video.preview(resize_to_limit: [160, 120]).processed)), clip %></td>
|
||||||
</li>
|
<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 %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</table>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue