Sha256: 33e6effedd7880c9c110b44d98b2b44fd74235a9be6dab89cb2ed8c59708c91a

Contents?: true

Size: 895 Bytes

Versions: 5

Compression:

Stored size: 895 Bytes

Contents

<% @page_title = @page.page_title.present? ? @page.page_title : @page.name %>

<%= content_for :head do %>
	<% cache([@page, 'head']) do %>
		<% if @page.meta_description.present? %>
			<meta name="description" content="<%= @page.meta_description %>" />
		<% end %>
		<% if @page.meta_keywords.present? %>
			<meta name="keywords" content="<%= @page.meta_keywords %>" />
		<% end %>
	<% end %>
<% end %>

<% if !@inline.blank? %>
	<%= render :inline => @inline %>
<% end %>
<% @page.spud_page_partials.each do |page_partial| %>
	<% if(page_partial.name.match(/^body$/i) && Spud::Cms.yield_body_as_content_block == false) %>
		<% cache(page_partial) do %>
			<%= page_partial.content.html_safe %>
		<% end %>
	<% else%>
		<%= content_for page_partial.symbol_name.to_sym do %>
			<% cache(page_partial) do %>
				<%= page_partial.content.html_safe %>
			<% end %>
		<% end %>
	<% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tb_cms-1.3.6 app/views/pages/show.html.erb
tb_cms-1.3.5 app/views/pages/show.html.erb
tb_cms-1.3.3 app/views/pages/show.html.erb
tb_cms-1.3.2 app/views/pages/show.html.erb
tb_cms-1.3.1 app/views/pages/show.html.erb