Merge branch 'main' into glitch-soc/merge-upstream
This commit is contained in:
@@ -31,6 +31,8 @@ module Admin::ActionLogsHelper
|
||||
link_to truncate(record.text), edit_admin_announcement_path(record.id)
|
||||
when 'IpBlock'
|
||||
"#{record.ip}/#{record.ip.prefix} (#{I18n.t("simple_form.labels.ip_block.severities.#{record.severity}")})"
|
||||
when 'Instance'
|
||||
record.domain
|
||||
end
|
||||
end
|
||||
|
||||
@@ -54,6 +56,8 @@ module Admin::ActionLogsHelper
|
||||
truncate(attributes['text'].is_a?(Array) ? attributes['text'].last : attributes['text'])
|
||||
when 'IpBlock'
|
||||
"#{attributes['ip']}/#{attributes['ip'].prefix} (#{I18n.t("simple_form.labels.ip_block.severities.#{attributes['severity']}")})"
|
||||
when 'Instance'
|
||||
attributes['domain']
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user