0
0
Fork 0

Improve display of statuses in admin panel (#30813)

This commit is contained in:
Emelia Smith 2024-11-15 10:38:01 +01:00 committed by GitHub
parent 2de018256a
commit ddfb3d123b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
81 changed files with 236 additions and 131 deletions

View file

@ -12,12 +12,12 @@ module Admin::AccountModerationNotesHelper
)
end
def admin_account_inline_link_to(account)
def admin_account_inline_link_to(account, path: nil)
return if account.nil?
link_to(
account_inline_text(account),
admin_account_path(account.id),
path || admin_account_path(account.id),
class: class_names('inline-name-tag', suspended: suspended_account?(account)),
title: account.acct
)