mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 21:56:55 -04:00
Add page anchors to put you to the area you are most interested in
This commit is contained in:
@@ -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? :
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
Reference in New Issue
Block a user