_event.html.haml 633 Bytes
Newer Older
1
- if event.proper?
2
  .event-item{class: "#{event.body? ? "event-block" : "event-inline" }"}
3
    .event-item-timestamp
4
      #{time_ago_with_tooltip(event.created_at)}
5

6
    = cache [event, current_application_settings, "v2.1"] do
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
7
      = image_tag avatar_icon(event.author_email, 46), class: "avatar s46", alt:''
Douwe Maan's avatar
Douwe Maan committed
8 9 10
      - if event.created_project?
        = render "events/event/created_project", event: event
      - elsif event.push?
Valery Sizov's avatar
Valery Sizov committed
11 12 13 14 15
        = render "events/event/push", event: event
      - elsif event.commented?
        = render "events/event/note", event: event
      - else
        = render "events/event/common", event: event