mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-27 03:02:43 -04:00
33 lines
842 B
Plaintext
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'
|