From c678806489cbe7d63d3946de1265697c7fb996e6 Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 10 Jan 2016 16:27:16 -0800 Subject: fix user list --- app/helpers/core_helper.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/helpers') diff --git a/app/helpers/core_helper.rb b/app/helpers/core_helper.rb index f34d2f2..05efb95 100644 --- a/app/helpers/core_helper.rb +++ b/app/helpers/core_helper.rb @@ -29,4 +29,12 @@ module CoreHelper }.join(" ").html_safe end + # + # displays the datetime as time ago in words, + # but has the absolute time in a tooltip. + # + def simple_date(datetime) + content_tag :span, time_ago_in_words(datetime), :title => datetime.to_s, :class => 'date' + end + end -- cgit v1.2.3