removing unneeded photo-related files

This commit is contained in:
Mackenzie Morgan
2014-09-09 22:18:43 -04:00
parent ed537e583b
commit 550f3c5326
2 changed files with 0 additions and 49 deletions

View File

@@ -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

View File

@@ -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'