fix in person partial
This commit is contained in:
parent
5d0f4dd587
commit
8c0bc4b9e6
2 changed files with 9 additions and 2 deletions
|
|
@ -57,7 +57,11 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def person_image_link(person)
|
||||
link_to person_image_tag(person), object_path(person)
|
||||
if current_user.friends.include?(person) || current_user.person == person
|
||||
link_to person_image_tag(person), object_path(person)
|
||||
else
|
||||
person_image_tag person
|
||||
end
|
||||
end
|
||||
|
||||
def new_request(request_count)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,10 @@
|
|||
|
||||
.content
|
||||
%span.from
|
||||
= link_to person.real_name, person_path(person)
|
||||
- if current_user.friends.include?(person) || person.id == current_user.person.id
|
||||
= link_to person.real_name, person_path(person)
|
||||
- else
|
||||
= person.real_name
|
||||
|
||||
.info
|
||||
= person.diaspora_handle
|
||||
|
|
|
|||
Loading…
Reference in a new issue