Commit d418a50a9e21097b6b43faa43a2d9210ae5a2b58

Authored by Antonio Terceiro
1 parent 89ff8055

ActionItem1049: numbering the highlighted news

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/views/home/index.rhtml
... ... @@ -6,8 +6,8 @@
6 6 <h1><%= _('News') %></h1>
7 7 <% cache @news_cache_key do %>
8 8 <div id='highlighted-news'>
9   - <% @highlighted_news.each do |highlighted| %>
10   - <div class='highlighted-news-item'>
  9 + <% @highlighted_news.each_with_index do |highlighted, index| %>
  10 + <div class='highlighted-news-item post-<%= index + 1 %>'>
11 11 <h2><%= link_to(highlighted.title, highlighted.url, :class => 'post-title') %></h2>
12 12 <span class="post-date"><%= show_date(highlighted.published_at, true) %> </span></p>
13 13 <p class='headline'><%= highlighted.first_paragraph %></p>
... ...