Closes #1753. Render thats_you message instead of dropdown for your hovercard
This commit is contained in:
parent
6beeecefd8
commit
3d7297ba5e
1 changed files with 6 additions and 2 deletions
|
|
@ -157,8 +157,12 @@ class PeopleController < ApplicationController
|
|||
|
||||
def aspect_membership_dropdown
|
||||
@person = Person.find(params[:person_id])
|
||||
@contact = current_user.contact_for(@person) || Contact.new
|
||||
render :partial => 'aspect_membership_dropdown', :locals => {:contact => @contact, :person => @person, :hang => 'left'}
|
||||
if @person == current_user.person
|
||||
render :text => I18n.t('people.person.thats_you')
|
||||
else
|
||||
@contact = current_user.contact_for(@person) || Contact.new
|
||||
render :partial => 'aspect_membership_dropdown', :locals => {:contact => @contact, :person => @person, :hang => 'left'}
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
|||
Loading…
Reference in a new issue