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