vendor/plugins/news/app/views/news_items/index.html.erb in refinerycms-0.9.6.6 vs vendor/plugins/news/app/views/news_items/index.html.erb in refinerycms-0.9.6.7
- old
+ new
@@ -1,8 +1,8 @@
<% content_for :body_content_left do %>
<%= @page[:body] %>
- <% unless @news_items.empty? %>
+ <% 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>