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
- @data.each do |row| | |
- if row[:teams].present? | |
.row | |
.span12 | |
%h3= row[:sport].name | |
- row[:teams].each do |team| | |
- rosters = team.rosters_from_hsg_or_community(@opts[:community]) | |
- upcoming_games = team.upcoming_games(@opts) | |
- if rosters.present? | |
- rosters.each do |roster| |
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
def opts_by_city | |
@city = City.find_by_slug(params[:city_slug]) | |
@for_tax = false | |
@for_street = false | |
@for_search = false | |
@all = [] | |
if params[:geo] =~ /tax/ | |
@geo = params[:geo].split("_").last | |
@for_tax = true |
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
# activity_stream.rss.builder | |
xml.instruct! :xml, :version => "1.0" | |
xml.rss :version => "2.0" do | |
xml.channel do | |
xml.title "Activity Feed for #{@home.name}" | |
xml.description "Activity Feed for #{@home.name}" | |
xml.link property_activity_stream_url(@home.parcel_id, @home.slug) | |
target = @activity_stream.target | |
properties = @activity_stream.properties |