@ -7,13 +7,13 @@ module HomeHelper
}
end
def account_link_to ( account , button = '' , size : 36 , path : nil )
def account_link_to ( account , button = '' , path : nil )
content_tag ( :div , class : 'account' ) do
content_tag ( :div , class : 'account__wrapper' ) do
section = if account . nil?
content_tag ( :div , class : 'account__display-name' ) do
content_tag ( :div , class : 'account__avatar-wrapper' ) do
content_tag ( :div , '' , class : 'account__avatar' , style : " width: #{ size } px; height: #{ size } px; background-size: #{ size } px #{ size } px; background-image: url( #{ full_asset_url ( 'avatars/original/missing.png' , skip_pipeline : true ) } ) " )
image_tag ( full_asset_url ( 'avatars/original/missing.png' , skip_pipeline : true ) , class : 'account__avatar' )
end +
content_tag ( :span , class : 'display-name' ) do
content_tag ( :strong , t ( 'about.contact_missing' ) ) +
@ -23,7 +23,7 @@ module HomeHelper
else
link_to ( path || ActivityPub :: TagManager . instance . url_for ( account ) , class : 'account__display-name' ) do
content_tag ( :div , class : 'account__avatar-wrapper' ) do
content_tag ( :div , '' , class : 'account__avatar' , style : " width: #{ size } px; height: #{ size } px; background-size: #{ size } px #{ size } px; background-image: url( #{ full_asset_url ( current_account & . user & . setting_auto_play_gif ? account . avatar_original_url : account . avatar_static_url ) } ) " )
image_tag ( full_asset_url ( current_account & . user & . setting_auto_play_gif ? account . avatar_original_url : account . avatar_static_url ) , class : 'account__avatar' )
end +
content_tag ( :span , class : 'display-name' ) do
content_tag ( :bdi ) do