Commit 16fea390a197aadb02e4409a0d29b9ed83af9d41
1 parent
87f14728
Exists in
master
and in
27 other branches
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)
Showing
2 changed files
with
2 additions
and
4 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -1420,12 +1420,12 @@ module ApplicationHelper |
1420 | 1420 | end |
1421 | 1421 | |
1422 | 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 | 1424 | link_to(profile_image(profile, :icon), profile.url, :class => 'profile-suggestion-connection-icon', :title => profile.name) |
1425 | 1425 | end |
1426 | 1426 | |
1427 | 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 | 1430 | content_tag(:div, profiles.join , :class => 'profile-connections') |
1431 | 1431 | end | ... | ... |
public/stylesheets/application.css