mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 16:26:03 +01:00
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:
@@ -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),
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user