<% desc = page.meta_description ? page.meta_description : page.head_title %> <% domain = site.primary_domain.domain %> <%= raw css %> <%= raw csrf_meta_tags %>
<% # Select which block to show url = request.original_fullpath if url =~ /^\/residential\/\d(.*?)$/ %><% Caboose.log("Rendering rets_residential_details" ) %><%= block.partial('rets_residential_details' , local_assigns) %><% elsif url =~ /^\/residential\/search(.*?)$/ %><% Caboose.log("Rendering rets_residential_index" ) %><%= block.partial('rets_residential_index' , local_assigns) %><% elsif url =~ /^\/residential(.*?)$/ %><% Caboose.log("Rendering rets_residential_index" ) %><%= block.partial('rets_residential_index' , local_assigns) %><% elsif url =~ /^\/commercial\/\d(.*?)$/ %><% Caboose.log("Rendering rets_property_details" ) %><%= block.partial('rets_property_details' , local_assigns) %><% elsif url =~ /^\/commercial\/search(.*?)$/ %><% Caboose.log("Rendering rets_properties_index" ) %><%= block.partial('rets_properties_index' , local_assigns) %><% elsif url =~ /^\/commercial(.*?)$/ %><% Caboose.log("Rendering rets_properties_index" ) %><%= block.partial('rets_properties_index' , local_assigns) %><% elsif url =~ /^\/commercial\/\d(.*?)$/ %><% Caboose.log("Rendering rets_commercial_details" ) %><%= block.partial('rets_commercial_details' , local_assigns) %><% elsif url =~ /^\/commercial\/search(.*?)$/ %><% Caboose.log("Rendering rets_commercial_index" ) %><%= block.partial('rets_commercial_index' , local_assigns) %><% elsif url =~ /^\/commercial(.*?)$/ %><% Caboose.log("Rendering rets_commercial_index" ) %><%= block.partial('rets_commercial_index' , local_assigns) %><% elsif url =~ /^\/land\/\d(.*?)$/ %><% Caboose.log("Rendering rets_land_details" ) %><%= block.partial('rets_land_details' , local_assigns) %><% elsif url =~ /^\/land\/search(.*?)$/ %><% Caboose.log("Rendering rets_land_index" ) %><%= block.partial('rets_land_index' , local_assigns) %><% elsif url =~ /^\/land(.*?)$/ %><% Caboose.log("Rendering rets_land_index" ) %><%= block.partial('rets_land_index' , local_assigns) %><% elsif url =~ /^\/multi-family\/\d(.*?)$/ %><% Caboose.log("Rendering rets_multifamily_details" ) %><%= block.partial('rets_multifamily_details' , local_assigns) %><% elsif url =~ /^\/multi-family\/search(.*?)$/ %><% Caboose.log("Rendering rets_multifamily_index" ) %><%= block.partial('rets_multifamily_index' , local_assigns) %><% elsif url =~ /^\/multi-family(.*?)$/ %><% Caboose.log("Rendering rets_multifamily_index" ) %><%= block.partial('rets_multifamily_index' , local_assigns) %><% elsif url =~ /^\/open-houses\/\d(.*?)$/ %><% Caboose.log("Rendering rets_openhouses_details" ) %><%= block.partial('rets_openhouses_details' , local_assigns) %><% elsif url =~ /^\/open-houses(.*?)$/ %><% Caboose.log("Rendering rets_openhouses_index" ) %><%= block.partial('rets_openhouses_index' , local_assigns) %><% elsif url =~ /^\/agents\/\d(.*?)\/listings$/ %><% Caboose.log("Rendering rets_agent_listings" ) %><%= block.partial('rets_agent_listings' , local_assigns) %><% elsif url =~ /^\/agents\/\d(.*?)$/ %><% Caboose.log("Rendering rets_agent_details" ) %><%= block.partial('rets_agent_details' , local_assigns) %><% elsif url =~ /^\/agents(.*?)$/ %><% Caboose.log("Rendering rets_agents_index" ) %><%= block.partial('rets_agents_index' , local_assigns) %><% elsif url =~ /^\/saved-searches(.*?)$/ %><% Caboose.log("Rendering rets_savedsearches" ) %><%= block.partial('rets_savedsearches' , local_assigns) %><% elsif url =~ /^\/saved-properties(.*?)$/ %><% Caboose.log("Rendering rets_savedproperties" ) %><%= block.partial('rets_savedproperties' , local_assigns) %><% end %>
<%= raw js %>