From 550f3c53265e80185486298079fdb7bebde63fc0 Mon Sep 17 00:00:00 2001 From: Mackenzie Morgan Date: Tue, 9 Sep 2014 22:18:43 -0400 Subject: [PATCH] removing unneeded photo-related files --- .../harvests/_image_with_popover.html.haml | 12 ------ app/views/harvests/_thumbnail.html.haml | 37 ------------------- 2 files changed, 49 deletions(-) delete mode 100644 app/views/harvests/_image_with_popover.html.haml delete mode 100644 app/views/harvests/_thumbnail.html.haml diff --git a/app/views/harvests/_image_with_popover.html.haml b/app/views/harvests/_image_with_popover.html.haml deleted file mode 100644 index 5eef8610e..000000000 --- a/app/views/harvests/_image_with_popover.html.haml +++ /dev/null @@ -1,12 +0,0 @@ -- cache "planting_image_#{planting.id}" do - = link_to | - image_tag( | - planting.photos.present? ? planting.photos.first.thumbnail_url : 'placeholder_150.png', | - :alt => planting.to_s | - ), | - planting, | - :rel => "popover", | - 'data-trigger' => 'hover', | - 'data-title' => planting.to_s, | - 'data-content' => "#{ render :partial => 'plantings/popover', :locals => { :planting => planting } }", | - 'data-html' => true diff --git a/app/views/harvests/_thumbnail.html.haml b/app/views/harvests/_thumbnail.html.haml deleted file mode 100644 index f3b1c1211..000000000 --- a/app/views/harvests/_thumbnail.html.haml +++ /dev/null @@ -1,37 +0,0 @@ -.well - .row-fluid - .span3 - = link_to image_tag((planting.default_photo ? planting.default_photo.thumbnail_url : 'placeholder_150.png'), :alt => '', :class => 'img-rounded'), planting - - .span9 - %h4 - - if defined?(title) && title == 'owner' - = link_to planting.owner, planting.owner - - else - = link_to planting.crop.name, planting - - %p - Planted - - if planting.planted_at - = planting.planted_at - in - = link_to planting.location, planting.garden - - %p - - if planting.quantity - Quantity: - = planting.quantity - - else -   - - - if planting.description && ! defined?(hide_description) - %div - :growstuff_markdown - #{ planting.description } - - - if can? :edit, planting or can? :destroy, planting - %p - - if can? :edit, planting - =link_to 'Edit', edit_planting_path(planting), :class => 'btn btn-mini' - - if can? :destroy, planting - =link_to 'Delete', planting, method: :delete, data: { confirm: 'Are you sure?' }, :class => 'btn btn-mini'