mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 01:05:01 -04:00
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
- cache seed do
|
|
.card.seed-card
|
|
= link_to seed_path(slug: seed.slug) do
|
|
= image_tag(seed.thumbnail_url ? seed.thumbnail_url : placeholder_image, alt: seed.crop_name, class: 'img-card')
|
|
.text
|
|
%h4.card-title
|
|
= link_to seed.crop_name, seed_path(slug: seed.slug)
|
|
%h5
|
|
%span.text-muted seeds saved by
|
|
= seed.owner_login_name
|
|
.card-body
|
|
- if seed.owner_location
|
|
%h6.small.badge.badge-pill.badge-location{ title: seed.owner_location }
|
|
= icon 'fas', 'map-marker'
|
|
= truncate(seed.owner_location, length: 15, separator: ' ', omission: '... ')
|
|
%p
|
|
- if seed.quantity
|
|
.badge.badge-info #{seed.quantity} seeds
|
|
%ul
|
|
- if seed.organic != 'unknown'
|
|
%li
|
|
%small.seedtitle--organic= seed.organic
|
|
- if seed.gmo != 'unknown'
|
|
%li
|
|
%small.seedtitle--gmo= seed.gmo
|
|
- if seed.heirloom != 'unknown'
|
|
%li
|
|
%small.seedtitle--heirloom= seed.heirloom
|
|
|
|
.card-footer
|
|
.d-flex.w-100.justify-content-between
|
|
- if seed.tradable
|
|
%small Will trade #{seed.tradable_to}
|
|
- if seed.plant_before
|
|
%small Plant before #{seed.plant_before}
|