diff options
Diffstat (limited to 'app/helpers/resource_events/abuse_report_events_helper.rb')
-rw-r--r-- | app/helpers/resource_events/abuse_report_events_helper.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/helpers/resource_events/abuse_report_events_helper.rb b/app/helpers/resource_events/abuse_report_events_helper.rb new file mode 100644 index 00000000000..8adbc891184 --- /dev/null +++ b/app/helpers/resource_events/abuse_report_events_helper.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true + +module ResourceEvents + module AbuseReportEventsHelper + def success_message_for_action(action) + case action + when 'ban_user' + s_('AbuseReportEvent|Successfully banned the user') + when 'block_user' + s_('AbuseReportEvent|Successfully blocked the user') + when 'delete_user' + s_('AbuseReportEvent|Successfully scheduled the user for deletion') + when 'close_report' + s_('AbuseReportEvent|Successfully closed the report') + when 'ban_user_and_close_report' + s_('AbuseReportEvent|Successfully banned the user and closed the report') + when 'block_user_and_close_report' + s_('AbuseReportEvent|Successfully blocked the user and closed the report') + when 'delete_user_and_close_report' + s_('AbuseReportEvent|Successfully scheduled the user for deletion and closed the report') + end + end + end +end |