Tweaked layout of crop page sidebar

This commit is contained in:
Skud
2014-10-19 14:14:24 +01:00
parent f468a8b77b
commit 496c070efd
3 changed files with 11 additions and 9 deletions

View File

@@ -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' }

View File

@@ -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" }

View File

@@ -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" }