diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-12 14:47:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-12 14:47:54 +0000 |
commit | cf4e2165024fbdc6c9d8f47f7cb72cad9affb968 (patch) | |
tree | cd6461bb6cdb62f99b7c8e178f20019dd4e5f6b2 | |
parent | 1eff42eda6f608f6f9b586c5ff8ca33f9ba1cb7e (diff) | |
download | redmine-cf4e2165024fbdc6c9d8f47f7cb72cad9affb968.tar.gz redmine-cf4e2165024fbdc6c9d8f47f7cb72cad9affb968.zip |
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
-rw-r--r-- | app/views/news/_news.rhtml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/news/_news.rhtml b/app/views/news/_news.rhtml index 1b1d35b1d..7a065ba4e 100644 --- a/app/views/news/_news.rhtml +++ b/app/views/news/_news.rhtml @@ -1,4 +1,5 @@ -<p><%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %><br /> +<p><%= 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 %><br /> <% unless news.summary.blank? %><%=h news.summary %><br /><% end %> <em><%= news.author.name %>, <%= format_time(news.created_on) %></em><br /> <%= news.comments_count %> <%= lwr(:label_comment, news.comments_count).downcase %><br /></p> |