Commit c27b5782 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix event rendering for certain event types

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 6985e7db
...@@ -214,4 +214,12 @@ module EventsHelper ...@@ -214,4 +214,12 @@ module EventsHelper
end end
end end
end end
def event_row_class(event)
if event.body? || event.created_project?
"event-block"
else
"event-inline"
end
end
end end
- if event.visible_to_user?(current_user) - 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 .event-item-timestamp
#{time_ago_with_tooltip(event.created_at)} #{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