Sha256: 2ec4f5b53834c13e9048943b2623ffc1a3ba3c2e696fc1a9995c47f3c24b688e
Contents?: true
Size: 967 Bytes
Versions: 13
Compression:
Stored size: 967 Bytes
Contents
<% content_for :caboose_css do %> <% @page.linked_resources_map[:css].each do |r| %> <!--link type='text/css' rel='stylesheet' href="<%= r %>" /--> <%= stylesheet_link_tag r %> <% end %> <% end %> <% content_for :caboose_js do %> <% @page.linked_resources_map[:js].each do |r| %> <!--script type='text/javascript' src="<%= r %>" ></script--> <%= javascript_include_tag r %> <% end %> <% end %> <% content_for :page_title do %><%= raw @page.title %><% end %> <% content_for :page_content do %><% @page.blocks.each do |b| bt = b.page_block_type if bt.nil? bt = PageBlockType.where(:name => 'heading').first b.page_block_type_id = bt.id b.save end if bt.use_render_function && bt.render_function %><%= raw b.render_from_function(params[:empty_text]) %><% else %><%= render :partial => "caboose/page_blocks/#{bt.name}", :locals => { :block => b, :empty_text => "" } %><% end end %><% end %>
Version data entries
13 entries across 13 versions & 1 rubygems