app/views/news_items/index.html.erb in refinerycms-news-0.9.7 vs app/views/news_items/index.html.erb in refinerycms-news-0.9.7.1

- old
+ new

@@ -1,17 +1,18 @@ <% content_for :body_content_left do %> - <%= @page[:body] %> + <%= @page[:body] if @news_items.offset == 0 %> <% if @news_items.any? %> <% @news_items.each do |item| %> <h3><%= link_to item.title, news_item_url(item) %></h3> <p> <small>Published <%= item.publish_date.strftime("%A %d of %B, %Y") %></small> </p> <%= truncate(item.body, :length => 200, :omission => " ... #{link_to "Read more", news_item_url(item)}", :preserve_html_tags => true) %> <% end %> + <%= will_paginate(@news_items) %> <% else %> <p><em>Sorry we haven't posted up any news yet.</em></p> <% end %> <% end %> - +<% content_for :body_content_right, "&nbsp;" if @news_items.offset > 0 -%> <%= render :partial => "/shared/content_page" %>