ref: master
app/views/home/index.html.erb
<% if @has_news %><%= _('News') %>
<% cache @news_cache_key, skip_digest: true do %><% @highlighted_news.each_with_index do |highlighted, index| %><% end %><%= link_to(h(highlighted.title), highlighted.url, :class => 'post-title') %>
<%= show_date(highlighted.published_at, true) %><%= raw highlighted.lead %><%= link_to(_('Read more'), highlighted.url) %>
<% @area_news.each_with_index do |folder, i| %> <%= content_tag(:div, :class => ["news-area", ['even', 'odd'][i%2]].join(' ')) do %> <%= content_tag(:div, :class => 'news-area-inner-1') do %> <%= content_tag(:div, :class => 'news-area-inner-2') do %><% @portal_news.each do |news| %>
- <%= show_date(news.published_at, true) %> <%= link_to(h(news.title), news.url, :class => 'post-title' ) %>
<% end %><%= link_to h(folder.title), folder.url %>