Module: ResourceEvents::AbuseReportEventsHelper

Included in:
AbuseReportEvent
Defined in:
app/helpers/resource_events/abuse_report_events_helper.rb

Instance Method Summary collapse

Instance Method Details

#success_message_for_action(action) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'app/helpers/resource_events/abuse_report_events_helper.rb', line 5

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