diff options
author | elijah <elijah@riseup.net> | 2016-01-10 16:27:16 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-01-10 16:27:16 -0800 |
commit | c678806489cbe7d63d3946de1265697c7fb996e6 (patch) | |
tree | 9206f22e1f9889fa300d2bafce4270dd54820a1f /app/helpers | |
parent | 1cd52015a2dcac610405fd163e1dca5a8d736add (diff) |
fix user list
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/core_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 |