0
0
Fork 0

Extract helper methods for form label in admin/ area views (#27575)

This commit is contained in:
Matt Jankowski 2023-11-29 05:06:19 -05:00 committed by GitHub
parent 9b47c5d53c
commit 72b7cd349c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 62 additions and 4 deletions

View file

@ -0,0 +1,12 @@
# frozen_string_literal: true
module Admin::IpBlocksHelper
def ip_blocks_severity_label(severity)
safe_join(
[
I18n.t("simple_form.labels.ip_block.severities.#{severity}"),
content_tag(:span, I18n.t("simple_form.hints.ip_block.severities.#{severity}"), class: 'hint'),
]
)
end
end