<% 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') %>
<% children.each do |item| %>
- <%= link_to(h(item.title), item.url)%>
<% end %>
<% elsif block.mode?('title_and_abstract') %>
<% children.each do |item| %>
<%= link_to(item.title,item.url, :class => 'post-title')%>
<%= show_date(item.published_at, true)%>
<%=item.lead%>
<%= link_to(_('Read more'), item.url) %>
<% end %>
<% else %>
<% children.each do |item| %>
<%= link_to(item.title,item.url, :class => 'post-title')%>
<%= show_date(item.published_at, true)%>
<%=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 %>