1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/views/api/notifications/_notify_admin_user_merged.json.jbuilder
2019-06-12 15:49:35 +02:00

10 lines
618 B
Ruby

json.title notification.notification_type
json.description _t('.user_NAME_has_merged_his_account_with_the_one_imported_from_PROVIDER_UID_html',
{
NAME: notification.attached_object&.profile&.full_name || t('api.notifications.deleted_user'),
GENDER: bool_to_sym(notification.attached_object&.statistic_profile&.gender),
PROVIDER: notification.attached_object&.provider,
UID: notification.attached_object&.uid
}) # messageFormat
json.url notification_url(notification, format: :json)