mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-30 03:36:23 -04:00
14 lines
667 B
Plaintext
14 lines
667 B
Plaintext
%h2= t('.recently_harvested')
|
|
- Harvest.homepage_records(6).each do |harvest|
|
|
- cache harvest do
|
|
= link_to harvest_path(slug: harvest.slug), class: 'list-group-item list-group-item-action flex-column align-items-start' do
|
|
.d-flex.w-100.justify-content-between.homepage--list-item
|
|
%div
|
|
%h4= harvest.crop_name
|
|
%span.badge.badge-success=harvest.plant_part
|
|
%small.text-muted
|
|
harvested by #{harvest.owner_login_name}
|
|
%p.mb-2
|
|
- if harvest.thumbnail_url
|
|
= image_tag harvest.thumbnail_url, width: 75, class: 'rounded shadow', alt: "Image of #{harvest.crop_name} by #{harvest.owner}"
|