fix event relative date being cached

This commit is contained in:
Dmitriy Zaporozhets 2013-03-08 13:14:47 +02:00
parent bc15713569
commit 9c709be335

View file

@ -1,9 +1,9 @@
- if event.proper?
= cache event do
%div.event-item
%span.cgray.pull-right
#{time_ago_in_words(event.created_at)} ago.
%div.event-item
%span.cgray.pull-right
#{time_ago_in_words(event.created_at)} ago.
= cache event do
= image_tag gravatar_icon(event.author_email), class: "avatar s24"
- if event.push?