parent
264555e63b
commit
d748d456b5
2 changed files with 2 additions and 9 deletions
|
|
@ -57,11 +57,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def person_image_link(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
|
||||
link_to person_image_tag(person), object_path(person)
|
||||
end
|
||||
|
||||
def new_request(request_count)
|
||||
|
|
|
|||
|
|
@ -8,10 +8,7 @@
|
|||
|
||||
.content
|
||||
%span.from
|
||||
- if current_user.friends.include?(person) || person.id == current_user.person.id
|
||||
= link_to person.real_name, person_path(person)
|
||||
- else
|
||||
= person.real_name
|
||||
= link_to person.real_name, person_path(person)
|
||||
|
||||
.info
|
||||
= person.diaspora_handle
|
||||
|
|
|
|||
Loading…
Reference in a new issue