Commit c91330e16b9bb333cc06f6cb3cad172b5dd3b754
1 parent
2e14e80a
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Move new member highligth feature to another branch in another momment. Will be …
…checked by created_at in role_assignment entity
Showing
2 changed files
with
1 additions
and
8 deletions
Show diff stats
app/controllers/public/profile_controller.rb
@@ -64,15 +64,8 @@ class ProfileController < PublicController | @@ -64,15 +64,8 @@ class ProfileController < PublicController | ||
64 | end | 64 | end |
65 | 65 | ||
66 | def members | 66 | def members |
67 | - @profiles_focus = [] | ||
68 | - | ||
69 | if is_cache_expired?(profile.members_cache_key(params)) | 67 | if is_cache_expired?(profile.members_cache_key(params)) |
70 | @members = profile.members_by_name.includes(relations_to_include).paginate(:per_page => members_per_page, :page => params[:npage], :total_entries => profile.members.count) | 68 | @members = profile.members_by_name.includes(relations_to_include).paginate(:per_page => members_per_page, :page => params[:npage], :total_entries => profile.members.count) |
71 | - if session[:invited_members] | ||
72 | - @profiles_focus = session[:invited_members] | ||
73 | - | ||
74 | - session.delete :invited_members | ||
75 | - end | ||
76 | end | 69 | end |
77 | end | 70 | end |
78 | 71 |
app/views/profile/members.html.erb
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
9 | of a community | 9 | of a community |
10 | --> | 10 | --> |
11 | <% @members.each do |member| %> | 11 | <% @members.each do |member| %> |
12 | - <%= profile_image_link(member, :portrait, 'li', @profiles_focus.include?(member.user_id) ? {:value =>_('New'), :class => 'new-profile'}:'') %> | 12 | + <%= profile_image_link(member) %> |
13 | <% end %> | 13 | <% end %> |
14 | </ul> | 14 | </ul> |
15 | 15 |