ref: master
plugins/recent_content/views/blocks/recent_content.html.erb
<% unless block.root.nil? %><% children = block.articles_of_folder(block.root, block.total_items)%><% else %> <%= _('This is the recent content block. Please edit it to show the content you want.') %> <% end %><%= block_title(block.title.blank? ? c_("Recent content") : block.title, block.subtitle ) %> <% if block.show_blog_picture and !block.root.image.nil? %><% if block.mode?('title_only') %><%= image_tag(block.root.image.public_filename(:big)) %><% end %><% elsif block.mode?('title_and_abstract') %><% children.each do |item| %>
- <%= link_to(h(item.title), item.url)%>
<% end %><% children.each do |item| %><% else %><%= link_to(item.title,item.url, :class => 'post-title')%>
<%= show_date(item.published_at, true)%><%=item.lead%><%= link_to(_('Read more'), item.url) %>
<% end %><% children.each do |item| %><% end %> <% if profile %> <%= link_to _('View All'), :profile => profile.identifier, :controller => 'content_viewer', :action => 'view_page', :page => block.root.path %> <% end %><%= link_to(item.title,item.url, :class => 'post-title')%>
<%= show_date(item.published_at, true)%><%=item.body%><%= link_to(_('Read more'), item.url) %>
<% end %>