-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added listglobally format XML index to properties
- Loading branch information
1 parent
532519b
commit 91ce406
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
vendor/extensions/properties/app/views/refinery/properties/properties/index.xml.builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
xml.instruct! | ||
xml.properties do | ||
@properties.each do |property| | ||
xml.property(:status => 'updated') do | ||
xml.reference_code property.id | ||
xml.location do | ||
xml.street property.address_street | ||
xml.city property.city | ||
xml.region property.state | ||
xml.country property.country_code | ||
xml.tag! 'postal-code', property.post_code | ||
xml.longitude property.longitude | ||
xml.latitude property.latitude | ||
end | ||
xml.features do | ||
xml.neighbourhood_is_farm true | ||
end | ||
xml.price do | ||
xml.min property.total_price | ||
xml.currency 'NZD' | ||
end | ||
xml.property_type 'Land' | ||
xml.link refinery.properties_property_url(property) | ||
xml.long_description strip_tags(property.description) | ||
xml.land_area_sqm property.land_area_sqm | ||
xml.images do | ||
property.images.each do |image| | ||
xml.image do | ||
xml.url image.url(:host => "http://#{request.host}") | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |