From d418a50a9e21097b6b43faa43a2d9210ae5a2b58 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 28 May 2009 16:16:00 -0300 Subject: [PATCH] ActionItem1049: numbering the highlighted news --- app/views/home/index.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/home/index.rhtml b/app/views/home/index.rhtml index 8e7107a..3da0a9e 100644 --- a/app/views/home/index.rhtml +++ b/app/views/home/index.rhtml @@ -6,8 +6,8 @@

<%= _('News') %>

<% cache @news_cache_key do %>
- <% @highlighted_news.each do |highlighted| %> -
+ <% @highlighted_news.each_with_index do |highlighted, index| %> +

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

<%= highlighted.first_paragraph %>

-- libgit2 0.21.2