Commit 44ccfb3fd9f5fe1a4e47941b1824d194ed54f474
Committed by
Antonio Terceiro
1 parent
d9815552
Exists in
master
and in
29 other branches
Context added to 'View all'
Blocks: friends, community and enterprises (ActionItem1326)
Showing
3 changed files
with
5 additions
and
5 deletions
Show diff stats
app/models/communities_block.rb
... | ... | @@ -21,11 +21,11 @@ class CommunitiesBlock < ProfileListBlock |
21 | 21 | case owner |
22 | 22 | when Profile |
23 | 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 | 25 | end |
26 | 26 | when Environment |
27 | 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 | 29 | end |
30 | 30 | else |
31 | 31 | '' | ... | ... |
app/models/enterprises_block.rb
... | ... | @@ -17,11 +17,11 @@ class EnterprisesBlock < ProfileListBlock |
17 | 17 | case owner |
18 | 18 | when Profile |
19 | 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 | 21 | end |
22 | 22 | when Environment |
23 | 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 | 25 | end |
26 | 26 | else |
27 | 27 | '' | ... | ... |
app/models/friends_block.rb
... | ... | @@ -15,7 +15,7 @@ class FriendsBlock < ProfileListBlock |
15 | 15 | def footer |
16 | 16 | owner_id = owner.identifier |
17 | 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 | 19 | end |
20 | 20 | end |
21 | 21 | ... | ... |