Emi Matchu
5631b02157
These were depending on the `rails-ujs` scripts we haven't had in here for a while! Now, they use the new equivalent Turbo attributes.
13 lines
428 B
Text
13 lines
428 B
Text
= outfit_li_for(outfit) do
|
|
- if outfit.image?
|
|
= link_to outfit_image_tag(outfit), outfit
|
|
|
|
%header
|
|
.outfit-star
|
|
= link_to outfit.name, outfit, class: 'outfit-name'
|
|
|
|
%footer
|
|
= link_to t('.edit'), outfit, class: 'outfit-edit-link'
|
|
= button_to t('.delete'), outfit, method: 'delete',
|
|
class: 'outfit-delete-button',
|
|
data: {turbo_confirm: t('.delete_confirmation', outfit_name: outfit.name)}
|