From 44ccfb3fd9f5fe1a4e47941b1824d194ed54f474 Mon Sep 17 00:00:00 2001 From: Aurelio A. Heckert Date: Tue, 24 Nov 2009 10:28:20 -0300 Subject: [PATCH] Context added to 'View all' --- app/models/communities_block.rb | 4 ++-- app/models/enterprises_block.rb | 4 ++-- app/models/friends_block.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/communities_block.rb b/app/models/communities_block.rb index ecea407..e82d47e 100644 --- a/app/models/communities_block.rb +++ b/app/models/communities_block.rb @@ -21,11 +21,11 @@ class CommunitiesBlock < ProfileListBlock case owner when Profile lambda do - link_to __('View all'), :profile => owner.identifier, :controller => 'profile', :action => 'communities' + link_to s_('communities|View all'), :profile => owner.identifier, :controller => 'profile', :action => 'communities' end when Environment lambda do - link_to __('View all'), :controller => 'search', :action => 'assets', :asset => 'communities' + link_to s_('communities|View all'), :controller => 'search', :action => 'assets', :asset => 'communities' end else '' diff --git a/app/models/enterprises_block.rb b/app/models/enterprises_block.rb index 13d1df0..edcade0 100644 --- a/app/models/enterprises_block.rb +++ b/app/models/enterprises_block.rb @@ -17,11 +17,11 @@ class EnterprisesBlock < ProfileListBlock case owner when Profile lambda do - link_to __('View all'), :profile => owner.identifier, :controller => 'profile', :action => 'enterprises' + link_to s_('enterprises|View all'), :profile => owner.identifier, :controller => 'profile', :action => 'enterprises' end when Environment lambda do - link_to __('View all'), :controller => 'search', :action => 'assets', :asset => 'enterprises' + link_to s_('enterprises|View all'), :controller => 'search', :action => 'assets', :asset => 'enterprises' end else '' diff --git a/app/models/friends_block.rb b/app/models/friends_block.rb index 858586f..4454aa8 100644 --- a/app/models/friends_block.rb +++ b/app/models/friends_block.rb @@ -15,7 +15,7 @@ class FriendsBlock < ProfileListBlock def footer owner_id = owner.identifier lambda do - link_to __('View all'), :profile => owner_id, :controller => 'profile', :action => 'friends' + link_to s_('friends|View all'), :profile => owner_id, :controller => 'profile', :action => 'friends' end end -- libgit2 0.21.2