Commit 44ccfb3fd9f5fe1a4e47941b1824d194ed54f474

Authored by Aurelio A. Heckert
Committed by Antonio Terceiro
1 parent d9815552

Context added to 'View all'

Blocks: friends, community and enterprises

(ActionItem1326)
app/models/communities_block.rb
@@ -21,11 +21,11 @@ class CommunitiesBlock < ProfileListBlock @@ -21,11 +21,11 @@ class CommunitiesBlock < ProfileListBlock
21 case owner 21 case owner
22 when Profile 22 when Profile
23 lambda do 23 lambda do
24 - link_to __('View all'), :profile => owner.identifier, :controller => 'profile', :action => 'communities' 24 + link_to s_('communities|View all'), :profile => owner.identifier, :controller => 'profile', :action => 'communities'
25 end 25 end
26 when Environment 26 when Environment
27 lambda do 27 lambda do
28 - link_to __('View all'), :controller => 'search', :action => 'assets', :asset => 'communities' 28 + link_to s_('communities|View all'), :controller => 'search', :action => 'assets', :asset => 'communities'
29 end 29 end
30 else 30 else
31 '' 31 ''
app/models/enterprises_block.rb
@@ -17,11 +17,11 @@ class EnterprisesBlock < ProfileListBlock @@ -17,11 +17,11 @@ class EnterprisesBlock < ProfileListBlock
17 case owner 17 case owner
18 when Profile 18 when Profile
19 lambda do 19 lambda do
20 - link_to __('View all'), :profile => owner.identifier, :controller => 'profile', :action => 'enterprises' 20 + link_to s_('enterprises|View all'), :profile => owner.identifier, :controller => 'profile', :action => 'enterprises'
21 end 21 end
22 when Environment 22 when Environment
23 lambda do 23 lambda do
24 - link_to __('View all'), :controller => 'search', :action => 'assets', :asset => 'enterprises' 24 + link_to s_('enterprises|View all'), :controller => 'search', :action => 'assets', :asset => 'enterprises'
25 end 25 end
26 else 26 else
27 '' 27 ''
app/models/friends_block.rb
@@ -15,7 +15,7 @@ class FriendsBlock < ProfileListBlock @@ -15,7 +15,7 @@ class FriendsBlock < ProfileListBlock
15 def footer 15 def footer
16 owner_id = owner.identifier 16 owner_id = owner.identifier
17 lambda do 17 lambda do
18 - link_to __('View all'), :profile => owner_id, :controller => 'profile', :action => 'friends' 18 + link_to s_('friends|View all'), :profile => owner_id, :controller => 'profile', :action => 'friends'
19 end 19 end
20 end 20 end
21 21