mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 17:54:59 -04:00
Added options for if you didn't plant/harvest anything
This commit is contained in:
@@ -3,40 +3,60 @@
|
||||
|
||||
%h2 What's new in your garden?
|
||||
|
||||
Have you planted anything recently? The most recent plantings you've
|
||||
told us about are:
|
||||
|
||||
%ul
|
||||
- @plantings.each do |p|
|
||||
%li
|
||||
= link_to p, planting_url(p)
|
||||
planted
|
||||
= distance_of_time_in_words(p.created_at, Time.zone.now)
|
||||
ago.
|
||||
|
||||
%p
|
||||
Planted anything new?
|
||||
= link_to "Track your plantings here.", new_planting_url
|
||||
Have you planted anything recently?
|
||||
|
||||
- if @member.plantings.size == 0
|
||||
%p
|
||||
#{ENV['GROWSTUFF_SITE_NAME']} lets you track what food you're growing
|
||||
in your garden.
|
||||
%p
|
||||
= link_to "Get started now.", new_planting_url
|
||||
|
||||
- else
|
||||
%p
|
||||
The most recent plantings you've told us about are:
|
||||
|
||||
%ul
|
||||
- @plantings.each do |p|
|
||||
%li
|
||||
= link_to p, planting_url(p)
|
||||
planted
|
||||
= distance_of_time_in_words(p.created_at, Time.zone.now)
|
||||
ago.
|
||||
|
||||
%p
|
||||
Planted anything new?
|
||||
= link_to "Track your plantings here.", new_planting_url
|
||||
|
||||
%h2 Your recent harvests
|
||||
|
||||
According to our records, the last few things you harvested were:
|
||||
- if @member.harvests.size == 0
|
||||
%p
|
||||
With #{ENV['GROWSTUFF_SITE_NAME']} you can keep track of what you
|
||||
harvest from your garden.
|
||||
|
||||
%ul
|
||||
- @harvests.each do |h|
|
||||
%li
|
||||
= link_to h, harvest_url(h)
|
||||
harvested
|
||||
= distance_of_time_in_words(h.created_at, Time.zone.now)
|
||||
ago.
|
||||
%p
|
||||
= link_to "Get started now.", new_harvest_url
|
||||
|
||||
- else
|
||||
According to our records, the last few things you harvested were:
|
||||
|
||||
%ul
|
||||
- @harvests.each do |h|
|
||||
%li
|
||||
= link_to h, harvest_url(h)
|
||||
harvested
|
||||
= distance_of_time_in_words(h.created_at, Time.zone.now)
|
||||
ago.
|
||||
|
||||
%p
|
||||
Harvested anything else lately?
|
||||
= link_to "Track your harvests here.", new_harvest_url
|
||||
|
||||
%p
|
||||
Harvested anything else lately?
|
||||
= link_to "Track your harvests here.", new_harvest_url
|
||||
|
||||
%p
|
||||
Don't want to get these emails any more?
|
||||
= link_to "Turn off these notifications", edit_member_registration_url
|
||||
Don't want to get these emails any more?
|
||||
= link_to "Turn off these notifications", edit_member_registration_url
|
||||
|
||||
%p
|
||||
The #{site_name} team.
|
||||
|
||||
Reference in New Issue
Block a user