Sha256: 44f19668652d46fc4c5c910477987b3b04349f897b0d2c414e39c2608611c130

Contents?: true

Size: 922 Bytes

Versions: 1

Compression:

Stored size: 922 Bytes

Contents

<% unless @page.images.empty? %>
  <%= render 'shared/slideshow', :images => @page.images, :size => :slide %>
<% end %>

<% if @page.has_context?('intro') %>
  <div class="intro">
    <%= render 'shared/content', :content => @page.for_context('intro').first %>
  </div>
<% end %>

<div class="left">
  <%= render :partial => 'shared/content', :collection => @page.for_context('main') %>
</div>

<div class="right">
  <% if defined?(SpreeEssentialBlog) && !@posts.blank? %>
    <div class="home-posts">
      <h1><%= t('blog.home.title') %></h1>
      <%= render :partial => 'blog/posts/preview', :collection => @posts, :as => :post %>
    </div>
  <% end %>
  <% if defined?(SpreeEssentialNews) && !@articles.blank? %>
    <div class="home-articles">
      <h1><%= t('news.home.title') %></h1>
      <%= render :partial => 'news/articles/preview', :collection => @articles, :as => :article %>
    </div>
  <% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_essential_cms-0.1.2 app/views/pages/home.html.erb