diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 00eb82f8c..0c677a990 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -107,11 +107,7 @@ module ApplicationHelper end def how_long_ago(obj) - if is_mobile_device? - time_ago_in_words(obj.created_at) - else - timeago(obj.created_at) - end + timeago(obj.created_at) end def person_url(person) diff --git a/app/views/notifications/index.mobile.haml b/app/views/notifications/index.mobile.haml index 157e2fc9d..cdf66db65 100644 --- a/app/views/notifications/index.mobile.haml +++ b/app/views/notifications/index.mobile.haml @@ -16,6 +16,7 @@ %span.from %b= notification_people_link(note) = object_link(note) - .time= timeago(note.updated_at) + .time + = time_ago_in_words(obj.created_at) = will_paginate @notifications diff --git a/app/views/shared/_stream_element.mobile.haml b/app/views/shared/_stream_element.mobile.haml index dcc1d0eea..e5ba55e27 100644 --- a/app/views/shared/_stream_element.mobile.haml +++ b/app/views/shared/_stream_element.mobile.haml @@ -4,7 +4,8 @@ .stream_element{:data=>{:guid=>post.id}} .right - %span.time= how_long_ago(post) + %span.time + = time_ago_in_words(obj.created_at) = person_image_link(post.person, :size => :thumb_small)