1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-13 23:48:55 +01:00
fab-manager/app/views/api/notifications/_notify_admins_role_update.json.jbuilder

8 lines
368 B
Ruby

# frozen_string_literal: true
json.title notification.notification_type
json.description t('.user_NAME_changed_ROLE_html',
NAME: notification.attached_object&.profile&.full_name || t('api.notifications.deleted_user'),
ROLE: t("roles.#{notification.attached_object&.role}"))
json.url notification_url(notification, format: :json)