now this is what i call an app
This commit is contained in:
commit
8063246b68
97 changed files with 1989 additions and 0 deletions
11
app/views/tapes/show.html.erb
Normal file
11
app/views/tapes/show.html.erb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<% cache @tape do %>
|
||||
<h1><%= @tape.title %></h1>
|
||||
<% end %>
|
||||
<% if @tape.video.attached? %>
|
||||
<%= video_tag @tape.video, :controls => true%>
|
||||
<% end %>
|
||||
<%= link_to "Back", tapes_path%>
|
||||
<% if authenticated? %>
|
||||
<%= link_to "Edit", edit_tape_path(@tape) %>
|
||||
<%= button_to "Delete", @tape, method: :delete, data: { turbo_confirm: "Are you sure?" } %>
|
||||
<% end %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue