diff --git a/app/views/friends/index.rhtml b/app/views/friends/index.rhtml index 5e8a096..fa2b19a 100644 --- a/app/views/friends/index.rhtml +++ b/app/views/friends/index.rhtml @@ -22,13 +22,14 @@

<%= __('You have no friends yet.') %> - <%= link_to _('Want you see other persons on this environment?'), :controller => 'search', :action => 'assets', :asset => 'people' %> + <%= link_to _('Do you want to see other people in this environment?'), :controller => 'search', :action => 'assets', :asset => 'people' %>

<% end %> <% button_bar do %> <%= button(:back, _('Go back'), :controller => 'profile_editor') %> + <%= button(:search, _('Find people'), :controller => 'search', :action => 'assets', :asset => 'people') %> <% end %> diff --git a/test/functional/friends_controller_test.rb b/test/functional/friends_controller_test.rb index 283be98..65d39de 100644 --- a/test/functional/friends_controller_test.rb +++ b/test/functional/friends_controller_test.rb @@ -69,4 +69,8 @@ class FriendsControllerTest < Test::Unit::TestCase end end + should 'display find people button' do + get :index, :profile => 'testuser' + assert_tag :tag => 'a', :content => 'Find people', :attributes => { :href => '/assets/people' } + end end -- libgit2 0.21.2