|
|
|
@ -30,8 +30,10 @@
|
|
|
|
|
</table>
|
|
|
|
|
<%= link_to "Write Review", new_movie_review_path(@movie), class: "review" %>
|
|
|
|
|
<section class="admin">
|
|
|
|
|
<% if current_user_admin? %>
|
|
|
|
|
<%= link_to "Edit", edit_movie_path(@movie), class: "button" %>
|
|
|
|
|
<%= link_to "Delete", movie_path(@movie), class: "button", data: { turbo_method: :delete, turbo_confirm: "Are you sure?" } %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</section>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|