scinote-web/app/views/client_api/notifications/index.json.jbuilder

11 lines
345 B
Plaintext
Raw Normal View History

2017-08-08 21:44:28 +08:00
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
2017-08-08 21:44:28 +08:00
end