Add breadcrumbs to news pages (#2631).

Patch by Brad Beattie.


git-svn-id: https://svn.redmine.org/redmine/trunk@22236 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2023-05-09 00:26:17 +00:00
parent 006c6a4e01
commit bf239fae8a
2 changed files with 2 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
<%= breadcrumb link_to(l(:label_news_plural), project_news_index_path(@project)) %>
<div class="contextual"> <div class="contextual">
<%= watcher_link(@news, User.current) %> <%= watcher_link(@news, User.current) %>
<%= link_to(l(:button_edit), <%= link_to(l(:button_edit),

View File

@@ -78,6 +78,7 @@ class NewsControllerTest < Redmine::ControllerTest
def test_show def test_show
get(:show, :params => {:id => 1}) get(:show, :params => {:id => 1})
assert_response :success assert_response :success
assert_select 'p.breadcrumb a[href=?]', '/projects/ecookbook/news', :text => 'News'
assert_select 'h2', :text => 'eCookbook first release !' assert_select 'h2', :text => 'eCookbook first release !'
end end