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)}
= cache [event, current_user] do - if event.created_project?
= image_tag avatar_icon(event.author_email, 24), class: "avatar s24", alt:'' = cache [event, current_user] do
- if event.push?
= render "events/event/push", event: event
- elsif event.commented?
= render "events/event/note", event: event
- elsif event.created_project?
= render "events/event/created_project", event: event = render "events/event/created_project", event: event
- else - else
= render "events/event/common", event: event = cache event do
\ No newline at end of file = image_tag avatar_icon(event.author_email, 24), class: "avatar s24", alt:''
- if event.push?
= render "events/event/push", event: event
- elsif event.commented?
= render "events/event/note", event: event
- else
= 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