mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-05 04:29:03 +01:00
13 lines
322 B
Ruby
13 lines
322 B
Ruby
|
# 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
|