<% unless root.nil? %>
<% children = block.articles_of_folder(root, block.total_items)%>
<%= block_title(block.title.blank? ? _("Recent content") : block.title ) %> <% if block.show_blog_picture and !root.image.nil? %>
<%= image_tag(root.image.public_filename(:big)) %>
<% end %>
<% if block.mode?('title_only') %>
<% elsif block.mode?('title_and_abstract') %>
<% children.each do |item| %>

<%= link_to(item.title,item.url, :class => 'post-title')%>

<%=item.lead%>

<%= link_to(_('Read more'), item.url) %>

<% end %>
<% else %>
<% children.each do |item| %>

<%= link_to(item.title,item.url, :class => 'post-title')%>

<%=item.body%>

<%= link_to(_('Read more'), item.url) %>

<% end %>
<% end %> <%= link_to _('View All'), :profile => profile.identifier, :controller => 'content_viewer', :action => 'view_page', :page => block.root.path %>
<% else %> <%= _('This is the recent content block. Please edit it to show the content you want.') %> <% end %>