BigW Consortium Gitlab

Fix event rendering for certain event types

parent 6985e7db
......@@ -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