Add page anchors to put you to the area you are most interested in

This commit is contained in:
Daniel O'Connor
2016-05-23 11:41:42 +09:30
parent 7872bb48e2
commit 80f826421b
6 changed files with 8 additions and 8 deletions

View File

@@ -18,7 +18,7 @@
- if garden.location.blank?
not specified
- else
= link_to garden.location, place_path(garden.location)
= link_to garden.location, place_path(garden.location, anchor: "gardens")
%dt Area :
%dd= garden.area.nil? ? "not specified" : pluralize(garden.area, garden.area_unit)
%dt Active? :

View File

@@ -2,4 +2,4 @@
- if member.location.blank?
unknown location
- else
= link_to member.location, place_path(:place => member.location)
= link_to member.location, place_path(:place => member.location, anchor: "members")

View File

@@ -2,4 +2,4 @@
%div#membermap
%p
See other members, plantings, seeds and more near
= link_to member.location, place_path(member.location)
= link_to member.location, place_path(member.location, anchor: "members")

View File

@@ -4,7 +4,7 @@
%div#placesmap{ :style => "height:300px"}
%h3= "Nearby members"
%h3#members= "Nearby members"
- if !@nearby_members.empty?
.row
@@ -13,7 +13,7 @@
= render :partial => "members/thumbnail", :locals => { :member => member }
= link_to "View all members >>", members_path
%h3= "Seeds available for trade near #{@place}"
%h3#seeds= "Seeds available for trade near #{@place}"
- crop_id = []
- @nearby_members.first(10).each do |member|
- member.seeds.first(5).each do |seed|
@@ -27,7 +27,7 @@
- else
%p No nearby seeds found
%h3= "Recent plantings near #{@place}"
%h3#plantings= "Recent plantings near #{@place}"
.row
- plantings = []

View File

@@ -61,7 +61,7 @@
%p
%small
View other plantings, members and more near
= link_to @planting.owner.location, place_path(@planting.owner.location)
= link_to @planting.owner.location, place_path(@planting.owner.location, anchor: "plantings")
%h2 Notes
:growstuff_markdown

View File

@@ -60,4 +60,4 @@
%p
%small
View other seeds, members and more near
= link_to @seed.owner.location, place_path(@seed.owner.location)
= link_to @seed.owner.location, place_path(@seed.owner.location, anchor: "seeds")