Remove unused button argument to account_link_to helper

This commit is contained in:
Matt Jankowski 2025-09-03 09:48:15 -04:00
parent bc952ebde9
commit c04af95cf5
2 changed files with 25 additions and 27 deletions

View File

@ -7,10 +7,10 @@ module HomeHelper
}
end
def account_link_to(account, button = '', path: nil)
def account_link_to(account, path: nil)
content_tag(:div, class: 'account account--minimal') do
content_tag(:div, class: 'account__wrapper') do
section = if account.nil?
if account.nil?
content_tag(:div, class: 'account__display-name') do
content_tag(:div, class: 'account__avatar-wrapper') do
image_tag(full_asset_url('avatars/original/missing.png', skip_pipeline: true), class: 'account__avatar')
@ -33,8 +33,6 @@ module HomeHelper
end
end
end
section + button
end
end
end

View File

@ -33,7 +33,7 @@
- @reports.group_by(&:target_account).each do |target_account, reports|
.report-card
.report-card__profile
= account_link_to target_account, '', path: admin_account_path(target_account.id)
= account_link_to target_account, path: admin_account_path(target_account.id)
.report-card__profile__stats
= link_to t('admin.reports.account.notes', count: target_account.targeted_moderation_notes.count), admin_account_path(target_account.id)
%br/