fixed build
This commit is contained in:
parent
bf20e5a9e8
commit
01cfeb65b2
3 changed files with 5 additions and 7 deletions
|
|
@ -107,11 +107,7 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def how_long_ago(obj)
|
def how_long_ago(obj)
|
||||||
if is_mobile_device?
|
timeago(obj.created_at)
|
||||||
time_ago_in_words(obj.created_at)
|
|
||||||
else
|
|
||||||
timeago(obj.created_at)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def person_url(person)
|
def person_url(person)
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
%span.from
|
%span.from
|
||||||
%b= notification_people_link(note)
|
%b= notification_people_link(note)
|
||||||
= object_link(note)
|
= object_link(note)
|
||||||
.time= timeago(note.updated_at)
|
.time
|
||||||
|
= time_ago_in_words(obj.created_at)
|
||||||
|
|
||||||
= will_paginate @notifications
|
= will_paginate @notifications
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@
|
||||||
|
|
||||||
.stream_element{:data=>{:guid=>post.id}}
|
.stream_element{:data=>{:guid=>post.id}}
|
||||||
.right
|
.right
|
||||||
%span.time= how_long_ago(post)
|
%span.time
|
||||||
|
= time_ago_in_words(obj.created_at)
|
||||||
|
|
||||||
= person_image_link(post.person, :size => :thumb_small)
|
= person_image_link(post.person, :size => :thumb_small)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue