2012-12-14 14:39:55 -05:00
|
|
|
- if event.proper?
|
2013-08-20 14:31:37 -04:00
|
|
|
.event-item{class: "#{event.body? ? "event-block" : "event-inline" }"}
|
2014-05-26 16:26:41 -04:00
|
|
|
.event-item-timestamp
|
2013-12-30 07:38:42 -05:00
|
|
|
#{time_ago_with_tooltip(event.created_at)}
|
2012-12-14 14:39:55 -05:00
|
|
|
|
2015-02-13 06:02:17 -05:00
|
|
|
= cache [event, current_user] do
|
2013-12-11 09:09:23 -05:00
|
|
|
= image_tag avatar_icon(event.author_email, 24), class: "avatar s24", alt:''
|
2012-10-01 09:58:13 -04:00
|
|
|
|
2013-03-06 10:30:48 -05:00
|
|
|
- if event.push?
|
|
|
|
= render "events/event/push", event: event
|
2015-02-13 06:02:17 -05:00
|
|
|
- elsif event.commented?
|
2013-03-06 10:30:48 -05:00
|
|
|
= render "events/event/note", event: event
|
2015-02-13 06:02:17 -05:00
|
|
|
- elsif event.created_project?
|
|
|
|
= render "events/event/created_project", event: event
|
2013-03-06 10:30:48 -05:00
|
|
|
- else
|
2015-01-28 16:18:22 -05:00
|
|
|
= render "events/event/common", event: event
|