12 lines
No EOL
477 B
Text
12 lines
No EOL
477 B
Text
<% cache @clip do %>
|
|
<h1><%= @clip.title %></h1>
|
|
<% end %>
|
|
<% if @clip.video.attached? %>
|
|
<%= video_tag @clip.video, :controls => true%><br>
|
|
<% end %>
|
|
<b>Category:</b> <%= link_to @clip.category.name, @clip.category %><br>
|
|
<b>Tags:</b> <%= @clip.tags.map(&:name).join(', ') %><br>
|
|
<% if authenticated? %>
|
|
<%= button_to "Edit", edit_clip_path(@clip), :method => "get" %>
|
|
<%= button_to "Delete", @clip, method: :delete, data: { turbo_confirm: "Are you sure?" } %>
|
|
<% end %> |