Initial commit
This commit is contained in:
14
app/views/videos/_video.html.erb
Normal file
14
app/views/videos/_video.html.erb
Normal file
@@ -0,0 +1,14 @@
|
||||
<tr>
|
||||
<td><%= time_ago_in_words(video.created_at) %> <%= t "shared.ago" %></td>
|
||||
<td><%= video.name %></td>
|
||||
<td><%= video.number %></td>
|
||||
<td><%= video.file.filename %></td>
|
||||
<td>
|
||||
<%= button_to_release_report video, content: t(".actions.report"), disabled: video.report_unpublished? %>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<% if policy(video).edit? %>
|
||||
<%= link_to t(".actions.edit"), [:edit, video], class: "btn btn-light btn-sm border" %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user