app/views/news_items/index.html.erb in refinerycms-news-0.9.9.5 vs app/views/news_items/index.html.erb in refinerycms-news-0.9.9.6
- old
+ new
@@ -1,13 +1,17 @@
+<% content_for :body_content_title do %>
+ <%= t('plugins.refinerycms_news.title') %>
+<% end %>
+
<% content_for :body_content_left do %>
<%= @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><%= t('.published') %> <%= l(item.publish_date) %></small>
+ <small><%= t('.published') %> <%= l(item.publish_date, :format => :long) %></small>
</p>
<%= truncate item.body, :length => 200,
:omission => " ... #{link_to t('.read_more'), news_item_url(item)}",
:preserve_html_tags => true %>
<% end %>
@@ -15,9 +19,7 @@
<%= will_paginate(@news_items) %>
<% else %>
<p><em><%= t('.no_items_yet') %></em></p>
<% end %>
<% end -%>
-
-<% content_for :body_content_right, " " if @news_items.offset > 0 -%>
<%= render :partial => "/shared/content_page" %>