Updated sorting for channel's videos on view page
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<h3>Channel videos</h3>
|
||||
<h3>Recently updated channel videos:</h3>
|
||||
<% if channel.videos.length > 0 %>
|
||||
<table class="u-full-width">
|
||||
<thead>
|
||||
@ -38,14 +38,16 @@
|
||||
<th>Video name</th>
|
||||
<th>Video serial</th>
|
||||
<th>Video description</th>
|
||||
<th>Last updated</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% channel.videos.each do |v| %>
|
||||
<% channel_videos.each do |v| %>
|
||||
<tr>
|
||||
<td><a href="/video/<%= v.id %>"><%= v.name %></a></td>
|
||||
<td><%= serialize(v.serial) %></td>
|
||||
<td><%= v.description %></td>
|
||||
<td><%= date_format(v.updated_at) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user