ip_blocks_helper.rb 322 B

123456789101112
  1. # frozen_string_literal: true
  2. module Admin::IpBlocksHelper
  3. def ip_blocks_severity_label(severity)
  4. safe_join(
  5. [
  6. I18n.t("simple_form.labels.ip_block.severities.#{severity}"),
  7. content_tag(:span, I18n.t("simple_form.hints.ip_block.severities.#{severity}"), class: 'hint'),
  8. ]
  9. )
  10. end
  11. end