parent
54e0c7afb2
commit
f284d57c62
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ module ApplicationHelper
|
|||
content_tag(:span, time_ago_in_words(date), :title => l(date, :format => :friendly))
|
||||
end
|
||||
|
||||
def friendly_date_ago(date)
|
||||
content_tag(:span, time_ago_in_words(date, :scope => :'datetime.distance_in_words_ago'), :title => l(date, :format => :friendly))
|
||||
end
|
||||
|
||||
def body_class
|
||||
if content_for? :body_class
|
||||
content_for :body_class
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue