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 | 64 | end |
| 65 | 65 | |
| 66 | 66 | def members |
| 67 | - @profiles_focus = [] | |
| 68 | - | |
| 69 | 67 | if is_cache_expired?(profile.members_cache_key(params)) |
| 70 | 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 | 69 | end |
| 77 | 70 | end |
| 78 | 71 | ... | ... |
app/views/profile/members.html.erb
| ... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 | of a community |
| 10 | 10 | --> |
| 11 | 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 | 13 | <% end %> |
| 14 | 14 | </ul> |
| 15 | 15 | ... | ... |