BigW Consortium Gitlab

_event.html.haml 802 Bytes
Newer Older
1
- if event.visible_to_user?(current_user)
2
  .event-item{ class: event_row_class(event) }
3
    .event-item-timestamp
4
      #{time_ago_with_tooltip(event.created_at)}
5

6
    = cache [event, current_application_settings, "v2.2"] do
7
      - if event.author
8
        = link_to user_path(event.author) do
9 10 11 12
          = image_tag avatar_icon(event.author_email, 40), class: "avatar s40", alt:''
      - else
        = image_tag avatar_icon(event.author_email, 40), class: "avatar s40", alt:''

Douwe Maan committed
13 14 15
      - if event.created_project?
        = render "events/event/created_project", event: event
      - elsif event.push?
Valery Sizov committed
16 17 18 19 20
        = render "events/event/push", event: event
      - elsif event.commented?
        = render "events/event/note", event: event
      - else
        = render "events/event/common", event: event