Commit b76659c5 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Re-use event cache with other users unless its personal

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 16c71a3b
...@@ -3,14 +3,15 @@ ...@@ -3,14 +3,15 @@
.event-item-timestamp .event-item-timestamp
#{time_ago_with_tooltip(event.created_at)} #{time_ago_with_tooltip(event.created_at)}
- if event.created_project?
= cache [event, current_user] do = cache [event, current_user] do
= render "events/event/created_project", event: event
- else
= cache event do
= image_tag avatar_icon(event.author_email, 24), class: "avatar s24", alt:'' = image_tag avatar_icon(event.author_email, 24), class: "avatar s24", alt:''
- if event.push? - if event.push?
= render "events/event/push", event: event = render "events/event/push", event: event
- elsif event.commented? - elsif event.commented?
= render "events/event/note", event: event = render "events/event/note", event: event
- elsif event.created_project?
= render "events/event/created_project", event: event
- else - else
= render "events/event/common", event: event = render "events/event/common", event: event
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment