1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-23 11:08:21 +09:00
mastodon/app/helpers/admin/account_actions_helper.rb

13 lines
331 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Admin::AccountActionsHelper
def account_action_type_label(type)
safe_join(
[
I18n.t("simple_form.labels.admin_account_action.types.#{type}"),
content_tag(:span, I18n.t("simple_form.hints.admin_account_action.types.#{type}"), class: 'hint'),
]
)
end
end