BigW Consortium Gitlab

_event.html.haml 601 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

Douwe Maan committed
6
    = cache [event, "v1"] do
Valery Sizov committed
7
      = image_tag avatar_icon(event.author_email, 24), class: "avatar s24", alt:''
Douwe Maan committed
8 9 10
      - if event.created_project?
        = render "events/event/created_project", event: event
      - elsif event.push?
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