1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/app/views/admin/photos/_photo.html.haml
2014-12-13 17:19:42 +00:00

6 lines
235 B
Plaintext

.photo
= link_to image_tag(photo.image.admin.url, title: photo.title), photo.image.url
.actions
= link_to 'Edit', edit_admin_photo_path(photo)
= link_to 'Destroy', [:admin, photo], confirm: 'Are you sure?', method: :delete