2016-06-02 11:05:42 +05:30
|
|
|
- if event.visible_to_user?(current_user)
|
|
|
|
.event-item{ class: event_row_class(event) }
|
2014-09-02 18:07:02 +05:30
|
|
|
.event-item-timestamp
|
|
|
|
#{time_ago_with_tooltip(event.created_at)}
|
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
= cache [event, current_application_settings, "v2.2"] do
|
2016-08-24 12:49:21 +05:30
|
|
|
= author_avatar(event, size: 40)
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if event.created_project?
|
|
|
|
= render "events/event/created_project", event: event
|
|
|
|
- elsif event.push?
|
2014-09-02 18:07:02 +05:30
|
|
|
= render "events/event/push", event: event
|
2015-04-26 12:48:37 +05:30
|
|
|
- elsif event.commented?
|
2014-09-02 18:07:02 +05:30
|
|
|
= render "events/event/note", event: event
|
|
|
|
- else
|
2015-09-11 14:41:01 +05:30
|
|
|
= render "events/event/common", event: event
|