Tapes are now Clips, also they have categories
This commit is contained in:
parent
86c489be72
commit
c8732b6332
41 changed files with 347 additions and 148 deletions
12
app/views/clips/show.html.erb
Normal file
12
app/views/clips/show.html.erb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<% cache @clip do %>
|
||||
<h1><%= @clip.title %></h1>
|
||||
<% end %>
|
||||
<b>Category:</b> <%= link_to @clip.category.name, @clip.category %><br>
|
||||
<% if @clip.video.attached? %>
|
||||
<%= video_tag @clip.video, :controls => true%>
|
||||
<% end %>
|
||||
<%= link_to "Back", clips_path%>
|
||||
<% if authenticated? %>
|
||||
<%= link_to "Edit", edit_clip_path(@clip) %>
|
||||
<%= button_to "Delete", @clip, method: :delete, data: { turbo_confirm: "Are you sure?" } %>
|
||||
<% end %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue