diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb index 95d6fe265..f8585aa2a 100644 --- a/app/views/news/show.html.erb +++ b/app/views/news/show.html.erb @@ -1,3 +1,4 @@ +<%= breadcrumb link_to(l(:label_news_plural), {:controller => 'news', :action => 'index', :project_id => @project}) %>
<%= watcher_link(@news, User.current) %> <%= link_to(l(:button_edit), diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb index d21835656..44242e299 100644 --- a/test/functional/news_controller_test.rb +++ b/test/functional/news_controller_test.rb @@ -78,6 +78,7 @@ class NewsControllerTest < Redmine::ControllerTest def test_show get(:show, :params => {:id => 1}) assert_response :success + assert_select 'p.breadcrumb a[href=?]', '/projects/ecookbook/news', :text => 'News' assert_select 'h2', :text => 'eCookbook first release !' end