Add: 管理画面での操作履歴フィルタにkmyblue独自項目 (#635)

This commit is contained in:
KMY(雪あすか) 2024-03-05 12:38:54 +09:00 committed by GitHub
parent cfb808b915
commit 8cb4838fb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 1 deletions

View file

@ -23,7 +23,9 @@ module Admin::ActionLogsHelper
link_to log.human_identifier, disputes_strike_path(log.target_id)
when 'Announcement'
link_to truncate(log.human_identifier), edit_admin_announcement_path(log.target_id)
when 'IpBlock', 'Instance', 'CustomEmoji'
when 'CustomEmoji'
link_to log.human_identifier, edit_admin_custom_emoji_path(log.target_id)
when 'IpBlock', 'Instance'
log.human_identifier
when 'CanonicalEmailBlock'
content_tag(:samp, (log.human_identifier.presence || '')[0...7], title: log.human_identifier)