Commit c3875b5f authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'fix-event-row' into 'master'

Fix event rendering for certain event types
Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

See merge request !3469
parents 403b7fe1 c27b5782
......@@ -214,4 +214,12 @@ module EventsHelper
end
end
end
def event_row_class(event)
if event.body? || event.created_project?
"event-block"
else
"event-inline"
end
end
end
- if event.visible_to_user?(current_user)
.event-item{class: "#{event.body? ? "event-block" : "event-inline" }"}
.event-item{ class: event_row_class(event) }
.event-item-timestamp
#{time_ago_with_tooltip(event.created_at)}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment