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,9 +157,13 @@ class PeopleController < ApplicationController
|
||||||
|
|
||||||
def aspect_membership_dropdown
|
def aspect_membership_dropdown
|
||||||
@person = Person.find(params[:person_id])
|
@person = Person.find(params[:person_id])
|
||||||
|
if @person == current_user.person
|
||||||
|
render :text => I18n.t('people.person.thats_you')
|
||||||
|
else
|
||||||
@contact = current_user.contact_for(@person) || Contact.new
|
@contact = current_user.contact_for(@person) || Contact.new
|
||||||
render :partial => 'aspect_membership_dropdown', :locals => {:contact => @contact, :person => @person, :hang => 'left'}
|
render :partial => 'aspect_membership_dropdown', :locals => {:contact => @contact, :person => @person, :hang => 'left'}
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def webfinger(account, opts = {})
|
def webfinger(account, opts = {})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue