Rearrange member profile so that current progress is reported first, harvests second

This commit is contained in:
Daniel O'Connor
2024-02-18 03:23:30 +00:00
parent a4797c3f67
commit 42e1dbb4da
2 changed files with 11 additions and 7 deletions

View File

@@ -8,6 +8,11 @@
%p= render 'stats', cached: true
.col
%p
- if current_member.plantings.active.any?
= link_to member_path(current_member), class: 'btn btn-dark' do
= image_icon 'plantings'
Track my plantings
%p
= link_to member_gardens_path(current_member), class: 'btn btn-dark' do
= image_icon 'gardens'

View File

@@ -5,13 +5,6 @@
- @harvesting.each do |planting|
= render 'plantings/thumbnail', planting: planting
- if @harvests.any?
%section.havests
%h2 Recent Harvests
.index-cards
- @harvests.each do |harvest|
= render 'harvests/thumbnail', harvest: harvest
- if @others.size.positive?
%section.planting-progress
%h2 Progress report
@@ -44,4 +37,10 @@
= link_to planting.crop_name, planting_url(slug: planting.slug)
planted on #{planting.planted_at.to_date}
- if @harvests.any?
%section.havests
%h2 Recent Harvests
.index-cards
- @harvests.each do |harvest|
= render 'harvests/thumbnail', harvest: harvest