From 7b573dd37f51d27b969541d3010283709841587f Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 14 Feb 2019 12:47:57 +0100 Subject: [PATCH] restored deprecated notification --- .../_notify_admin_invoicing_changed.json.jbuilder | 9 +++++++++ ...otify_member_subscribed_plan_is_changed.json.jbuilder | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 app/views/api/notifications/_notify_admin_invoicing_changed.json.jbuilder diff --git a/app/views/api/notifications/_notify_admin_invoicing_changed.json.jbuilder b/app/views/api/notifications/_notify_admin_invoicing_changed.json.jbuilder new file mode 100644 index 000000000..5f0f826d7 --- /dev/null +++ b/app/views/api/notifications/_notify_admin_invoicing_changed.json.jbuilder @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +# @deprecated +# DEPRECATED: Feature removed in v2.8.2 +json.title notification.notification_type +json.description _t('.invoices_generation_was_STATUS_for_user_NAME_html', + STATUS: notification.attached_object.invoicing_disabled.to_s, + NAME: notification.attached_object.profile.full_name) # messageFormat +json.url notification_url(notification, format: :json) diff --git a/app/views/api/notifications/_notify_member_subscribed_plan_is_changed.json.jbuilder b/app/views/api/notifications/_notify_member_subscribed_plan_is_changed.json.jbuilder index bb5af8c65..08a17c2a5 100644 --- a/app/views/api/notifications/_notify_member_subscribed_plan_is_changed.json.jbuilder +++ b/app/views/api/notifications/_notify_member_subscribed_plan_is_changed.json.jbuilder @@ -1,3 +1,7 @@ +# frozen_string_literal: true + +# @deprecated +# DEPRECATED: Feature removed in v1 (87dd9ba0 2015-06-04) json.title notification.notification_type json.description t('.you_have_changed_your_subscription_to_PLAN_html', PLAN: notification.attached_object.plan.name)