Commit b37c7bda5b88e7a20e2ca6d891069fa1ae6c0a82
1 parent
28328daa
Exists in
master
and in
29 other branches
Changed blocks footer to link to browse
On people and communities blocks (ActionItem1792)
Showing
4 changed files
with
5 additions
and
5 deletions
Show diff stats
app/models/communities_block.rb
... | ... | @@ -21,7 +21,7 @@ class CommunitiesBlock < ProfileListBlock |
21 | 21 | end |
22 | 22 | when Environment |
23 | 23 | lambda do |
24 | - link_to s_('communities|View all'), :controller => 'search', :action => 'assets', :asset => 'communities' | |
24 | + link_to s_('communities|View all'), :controller => 'browse', :action => 'communities' | |
25 | 25 | end |
26 | 26 | else |
27 | 27 | '' | ... | ... |
app/models/people_block.rb
... | ... | @@ -18,7 +18,7 @@ class PeopleBlock < ProfileListBlock |
18 | 18 | |
19 | 19 | def footer |
20 | 20 | lambda do |
21 | - link_to _('View all'), :controller => 'search', :action => 'assets', :asset => 'people' | |
21 | + link_to _('View all'), :controller => 'browse', :action => 'people' | |
22 | 22 | end |
23 | 23 | end |
24 | 24 | ... | ... |
test/unit/communities_block_test.rb
... | ... | @@ -43,7 +43,7 @@ class CommunitiesBlockTest < Test::Unit::TestCase |
43 | 43 | block = CommunitiesBlock.new |
44 | 44 | block.expects(:owner).returns(env) |
45 | 45 | |
46 | - expects(:link_to).with('View all', :controller => 'search', :action => 'assets', :asset => 'communities') | |
46 | + expects(:link_to).with('View all', :controller => "browse", :action => 'communities') | |
47 | 47 | |
48 | 48 | instance_eval(&block.footer) |
49 | 49 | end | ... | ... |
test/unit/people_block_test.rb
... | ... | @@ -35,12 +35,12 @@ class PeopleBlockTest < ActiveSupport::TestCase |
35 | 35 | assert_match(/#{person2.name}/, content) |
36 | 36 | end |
37 | 37 | |
38 | - should 'link to people directory' do | |
38 | + should 'link to browse people' do | |
39 | 39 | block = PeopleBlock.new |
40 | 40 | block.stubs(:owner).returns(Environment.default) |
41 | 41 | |
42 | 42 | expects(:_).with('View all').returns('View all people') |
43 | - expects(:link_to).with('View all people', :controller => 'search', :action => 'assets', :asset => 'people') | |
43 | + expects(:link_to).with('View all people', :controller => 'browse', :action => 'people') | |
44 | 44 | instance_eval(&block.footer) |
45 | 45 | end |
46 | 46 | ... | ... |