2012-03-01 20:47:57 +02:00
|
|
|
- if event.allowed?
|
2012-09-24 12:32:51 +03:00
|
|
|
%div.event-item
|
2012-10-01 16:58:13 +03:00
|
|
|
= event_image(event)
|
|
|
|
= image_tag gravatar_icon(event.author_email), class: "avatar"
|
|
|
|
|
2012-10-01 16:39:19 +03:00
|
|
|
- if event.push?
|
2012-10-01 16:58:13 +03:00
|
|
|
= render "events/event/push", event: event
|
2012-10-01 16:39:19 +03:00
|
|
|
- else
|
2012-10-01 16:58:13 +03:00
|
|
|
= render "events/event/common", event: event
|
2012-09-09 23:18:28 +03:00
|
|
|
|
2012-10-01 16:58:13 +03:00
|
|
|
.clearfix
|
2012-09-24 12:32:51 +03:00
|
|
|
%span.cgray.right
|
|
|
|
= time_ago_in_words(event.created_at)
|
|
|
|
ago.
|
|
|
|
.clearfix
|