Files
growstuff/app/views/plantings/_thumbnail.html.haml
Skud 0ec01ab259 improved date/time formatting
we set defaults for date and time formatting (and override them in a few
places)
2013-04-02 12:30:05 +11:00

33 lines
842 B
Plaintext

.well
%h4
- if defined?(title) && title == 'owner'
= link_to planting.owner, planting.owner
- else
= link_to planting.crop.system_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
: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'