From cf4e2165024fbdc6c9d8f47f7cb72cad9affb968 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 12 Aug 2007 14:47:54 +0000 Subject: [PATCH] Project name is now displayed in news titles when not inside the project (eg. home page). git-svn-id: http://redmine.rubyforge.org/svn/trunk@619 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/news/_news.rhtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/news/_news.rhtml b/app/views/news/_news.rhtml index 1b1d35b1..7a065ba4 100644 --- a/app/views/news/_news.rhtml +++ b/app/views/news/_news.rhtml @@ -1,4 +1,5 @@ -

<%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %>
+

<%= link_to(h(news.project.name), :controller => 'projects', :action => 'show', :id => news.project) + ': ' unless @project %> +<%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %>
<% unless news.summary.blank? %><%=h news.summary %>
<% end %> <%= news.author.name %>, <%= format_time(news.created_on) %>
<%= news.comments_count %> <%= lwr(:label_comment, news.comments_count).downcase %>

-- 2.11.0