cirandas.net

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| %>

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

<%= raw highlighted.lead %>

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


<% end %>
    <% @portal_news.each do |news| %>
  • <%= link_to(h(news.title), news.url, :class => 'post-title' ) %>
  • <% end %>
<% @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 %>

<%= link_to h(folder.title), folder.url %>

    <% folder.news(environment.news_amount_by_folder).each do |news| %>
  • <%= link_to(h(news.title), news.url) %>
  • <% end%>
<%= link_to _('View more'), folder.url, :class => 'news-see-more' %> <% end %> <% end %> <% end %> <% end %> <% end %> <% else %> <%= environment.description.html_safe %> <% end %> <% if environment.enabled?('search_in_home') %> <% end %>