From 7872bb48e279aba46eb50fa06337bfaa1c8ad229 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Mon, 23 May 2016 11:35:49 +0930 Subject: [PATCH] Fixes #872 Add more links and explain them better --- app/views/members/_map.html.haml | 2 +- app/views/plantings/show.html.haml | 5 ++++- app/views/seeds/show.html.haml | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/views/members/_map.html.haml b/app/views/members/_map.html.haml index d98792501..b6b6c40d2 100644 --- a/app/views/members/_map.html.haml +++ b/app/views/members/_map.html.haml @@ -1,5 +1,5 @@ - if member.latitude and member.longitude %div#membermap %p - See other members near + See other members, plantings, seeds and more near = link_to member.location, place_path(member.location) diff --git a/app/views/plantings/show.html.haml b/app/views/plantings/show.html.haml index b56e1f38c..4c96bf461 100644 --- a/app/views/plantings/show.html.haml +++ b/app/views/plantings/show.html.haml @@ -58,7 +58,10 @@ .col-md-6 = render :partial => "crops/index_card", :locals => { :crop => @planting.crop} - + %p + %small + View other plantings, members and more near + = link_to @planting.owner.location, place_path(@planting.owner.location) %h2 Notes :growstuff_markdown diff --git a/app/views/seeds/show.html.haml b/app/views/seeds/show.html.haml index c2f3399ea..96be29a1c 100644 --- a/app/views/seeds/show.html.haml +++ b/app/views/seeds/show.html.haml @@ -57,3 +57,7 @@ .col-md-6 = render :partial => "crops/index_card", :locals => { :crop => @seed.crop } + %p + %small + View other seeds, members and more near + = link_to @seed.owner.location, place_path(@seed.owner.location) \ No newline at end of file