Commit fb942f86a87eccb8af0babe2421f34c818a69029
1 parent
3afa696e
Exists in
staging
and in
42 other branches
Links that require login are not shown at first
(ActionItem1673)
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
app/helpers/application_helper.rb
| ... | ... | @@ -518,24 +518,24 @@ module ApplicationHelper |
| 518 | 518 | {_('Wall') => {:href => url_for(profile.public_profile_url)}}, |
| 519 | 519 | {_('Friends') => {:href => url_for(:controller => :profile, :action => :friends, :profile => profile.identifier)}}, |
| 520 | 520 | {_('Communities') => {:href => url_for(:controller => :profile, :action => :communities, :profile => profile.identifier)}}, |
| 521 | - {_('Send an e-mail') => {:href => url_for(:profile => profile.identifier, :controller => 'contact', :action => 'new'), :class => 'send-an-email'}}, | |
| 522 | - {_('Add') => {:href => url_for(profile.add_url), :class => 'add-friend'}} | |
| 521 | + {_('Send an e-mail') => {:href => url_for(:profile => profile.identifier, :controller => 'contact', :action => 'new'), :class => 'send-an-email', :style => 'display: none'}}, | |
| 522 | + {_('Add') => {:href => url_for(profile.add_url), :class => 'add-friend', :style => 'display: none'}} | |
| 523 | 523 | ] |
| 524 | 524 | elsif profile.kind_of?(Community) |
| 525 | 525 | [ |
| 526 | 526 | {_('Wall') => {:href => url_for(profile.public_profile_url)}}, |
| 527 | 527 | {_('Members') => {:href => url_for(:controller => :profile, :action => :members, :profile => profile.identifier)}}, |
| 528 | 528 | {_('Agenda') => {:href => url_for(:controller => :profile, :action => :events, :profile => profile.identifier)}}, |
| 529 | - {_('Join') => {:href => url_for(profile.join_url), :class => 'join-community'}}, | |
| 530 | - {_('Leave') => {:href => url_for(profile.leave_url), :class => 'leave-community'}}, | |
| 531 | - {_('Send an e-mail') => {:href => url_for(:profile => profile.identifier, :controller => 'contact', :action => 'new'), :class => 'send-an-email'}} | |
| 529 | + {_('Join') => {:href => url_for(profile.join_url), :class => 'join-community', :style => 'display: none'}}, | |
| 530 | + {_('Leave') => {:href => url_for(profile.leave_url), :class => 'leave-community', :style => 'display: none'}}, | |
| 531 | + {_('Send an e-mail') => {:href => url_for(:profile => profile.identifier, :controller => 'contact', :action => 'new'), :class => 'send-an-email', :style => 'display: none'}} | |
| 532 | 532 | ] |
| 533 | 533 | elsif profile.kind_of?(Enterprise) |
| 534 | 534 | [ |
| 535 | 535 | {_('Products') => {:href => catalog_path(profile.identifier)}}, |
| 536 | 536 | {_('Members') => {:href => url_for(:controller => :profile, :action => :members, :profile => profile.identifier)}}, |
| 537 | 537 | {_('Agenda') => {:href => url_for(:controller => :profile, :action => :events, :profile => profile.identifier)}}, |
| 538 | - {_('Send an e-mail') => {:href => url_for(:profile => profile.identifier, :controller => 'contact', :action => 'new'), :class => 'send-an-email'}}, | |
| 538 | + {_('Send an e-mail') => {:href => url_for(:profile => profile.identifier, :controller => 'contact', :action => 'new'), :class => 'send-an-email', :style => 'display: none'}}, | |
| 539 | 539 | ] |
| 540 | 540 | else |
| 541 | 541 | [] | ... | ... |