scinote-web/app/views/client_api/notifications/index.json.jbuilder
2017-12-13 17:25:25 +01:00

10 lines
345 B
Ruby

json.array! notifications do |notification|
json.id notification.id
json.title notification.title
json.message notification.message
json.typeOf notification.type_of
json.createdAt notification.created_at
if notification.type_of == 'recent_changes'
json.avatarThumb avatar_path(notification.generator_user, :icon_small)
end
end