Commit 16fea390a197aadb02e4409a0d29b9ed83af9d41

Authored by Larissa Reis
1 parent 87f14728

profile-suggestions: fixes hidden link for connections page

  The link for connection page wasn't visible because the tags weren't
  set to wraping. Also, changing the limit of profiles to 4 so all 4
  profiles plus the +X indicator can stay in the same line.

(ActionItem3234)
app/helpers/application_helper.rb
@@ -1420,12 +1420,12 @@ module ApplicationHelper @@ -1420,12 +1420,12 @@ module ApplicationHelper
1420 end 1420 end
1421 1421
1422 def profile_suggestion_profile_connections(suggestion) 1422 def profile_suggestion_profile_connections(suggestion)
1423 - profiles = suggestion.profile_connections.first(5).map do |profile| 1423 + profiles = suggestion.profile_connections.first(4).map do |profile|
1424 link_to(profile_image(profile, :icon), profile.url, :class => 'profile-suggestion-connection-icon', :title => profile.name) 1424 link_to(profile_image(profile, :icon), profile.url, :class => 'profile-suggestion-connection-icon', :title => profile.name)
1425 end 1425 end
1426 1426
1427 controller_target = suggestion.suggestion_type == 'Person' ? :friends : :memberships 1427 controller_target = suggestion.suggestion_type == 'Person' ? :friends : :memberships
1428 - profiles << link_to("<big> +#{suggestion.profile_connections.count - 5}</big>", :controller => controller_target, :action => :connections, :id => suggestion.suggestion_id) if suggestion.profile_connections.count > 5 1428 + profiles << link_to("<big> +#{suggestion.profile_connections.count - 4}</big>", :controller => controller_target, :action => :connections, :id => suggestion.suggestion_id) if suggestion.profile_connections.count > 4
1429 1429
1430 content_tag(:div, profiles.join , :class => 'profile-connections') 1430 content_tag(:div, profiles.join , :class => 'profile-connections')
1431 end 1431 end
public/stylesheets/application.css
@@ -4102,8 +4102,6 @@ h1#agenda-title { @@ -4102,8 +4102,6 @@ h1#agenda-title {
4102 margin-left: 2px; 4102 margin-left: 2px;
4103 margin-top: 3px; 4103 margin-top: 3px;
4104 overflow: hidden; 4104 overflow: hidden;
4105 - text-overflow: ellipsis;  
4106 - white-space: nowrap;  
4107 width: 120px; 4105 width: 120px;
4108 } 4106 }
4109 4107