Commit 9c709be335d3023dacb7c1140fcd15478c14a307
1 parent
bc157135
Exists in
master
and in
4 other branches
fix event relative date being cached
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
app/views/events/_event.html.haml
| 1 | 1 | - if event.proper? |
| 2 | - = cache event do | |
| 3 | - %div.event-item | |
| 4 | - %span.cgray.pull-right | |
| 5 | - #{time_ago_in_words(event.created_at)} ago. | |
| 2 | + %div.event-item | |
| 3 | + %span.cgray.pull-right | |
| 4 | + #{time_ago_in_words(event.created_at)} ago. | |
| 6 | 5 | |
| 6 | + = cache event do | |
| 7 | 7 | = image_tag gravatar_icon(event.author_email), class: "avatar s24" |
| 8 | 8 | |
| 9 | 9 | - if event.push? | ... | ... |