From 496c070efd3d88415a3af9708880366193d5fe02 Mon Sep 17 00:00:00 2001 From: Skud Date: Sun, 19 Oct 2014 14:14:24 +0100 Subject: [PATCH] Tweaked layout of crop page sidebar --- app/views/crops/_find_seeds.html.haml | 4 +++- app/views/crops/_harvests.html.haml | 8 ++++---- app/views/crops/_plantings.html.haml | 8 ++++---- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/views/crops/_find_seeds.html.haml b/app/views/crops/_find_seeds.html.haml index db7c5b4b7..9b7797144 100644 --- a/app/views/crops/_find_seeds.html.haml +++ b/app/views/crops/_find_seeds.html.haml @@ -8,7 +8,9 @@ %li = link_to "#{seed.owner} will trade #{seed.tradable_to}.", seed_path(seed) = render :partial => 'members/location', :locals => { :member => seed.owner } + %p + = link_to "View all #{crop.name} seeds", seeds_by_crop_path(crop) - if current_member - = link_to "List your seeds to trade.", new_seed_path() + = link_to "List achiote seeds to trade", new_seed_path(:crop_id => crop.id) - else = render :partial => 'shared/signin_signup', :locals => { :to => 'list your seeds to trade' } diff --git a/app/views/crops/_harvests.html.haml b/app/views/crops/_harvests.html.haml index d10f57d06..bac61e580 100644 --- a/app/views/crops/_harvests.html.haml +++ b/app/views/crops/_harvests.html.haml @@ -11,11 +11,11 @@ %small = distance_of_time_in_words(harvest.created_at, Time.zone.now) ago. - %p.col-md-offset-1 - = link_to "See all #{crop.name} harvests", harvests_by_crop_path(crop) + %p + = link_to "View all #{crop.name} harvests", harvests_by_crop_path(crop) - if current_member - %p.col-md-offset-1 - = link_to "Track your #{crop.name} harvests.", new_harvest_path(:crop_id => crop.id) + %p + = link_to "Harvest #{crop.name}", new_harvest_path(:crop_id => crop.id) - else = render :partial => 'shared/signin_signup', :locals => { :to => "track your #{crop.name} harvests" } diff --git a/app/views/crops/_plantings.html.haml b/app/views/crops/_plantings.html.haml index 72bce5608..85a2ff88a 100644 --- a/app/views/crops/_plantings.html.haml +++ b/app/views/crops/_plantings.html.haml @@ -11,11 +11,11 @@ %small = distance_of_time_in_words(planting.created_at, Time.zone.now) ago. - %p.col-md-offset-1 - = link_to "See all #{crop.name} plantings", plantings_by_crop_path(crop) + %p + = link_to "View all #{crop.name} plantings", plantings_by_crop_path(crop) - if current_member - %p.col-md-offset-1 - = link_to "Track your #{crop.name} plantings.", new_planting_path(:crop_id => crop.id) + %p + = link_to "Plant #{crop.name}", new_planting_path(:crop_id => crop.id) - else = render :partial => 'shared/signin_signup', :locals => { :to => "track your #{crop.name} plantings" }