Welcome to mirror list, hosted at ThFree Co, Russian Federation.

abuse_report_events_helper.rb « resource_events « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 207ec73454b2ad7a400bd6fc7933dcf16594633f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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 'trust_user'
        s_('AbuseReportEvent|Successfully trusted the user')
      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')
      when 'trust_user_and_close_report'
        s_('AbuseReportEvent|Successfully trusted the user and closed the report')
      end
    end
  end
end