|
|
|
@ -120,18 +120,6 @@ module ApplicationHelper
|
|
|
|
|
inline_svg_tag 'check.svg'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def visibility_icon(status)
|
|
|
|
|
if status.public_visibility?
|
|
|
|
|
material_symbol('globe', title: I18n.t('statuses.visibilities.public'))
|
|
|
|
|
elsif status.unlisted_visibility?
|
|
|
|
|
material_symbol('lock_open', title: I18n.t('statuses.visibilities.unlisted'))
|
|
|
|
|
elsif status.private_visibility? || status.limited_visibility?
|
|
|
|
|
material_symbol('lock', title: I18n.t('statuses.visibilities.private'))
|
|
|
|
|
elsif status.direct_visibility?
|
|
|
|
|
material_symbol('alternate_email', title: I18n.t('statuses.visibilities.direct'))
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def interrelationships_icon(relationships, account_id)
|
|
|
|
|
if relationships.following[account_id] && relationships.followed_by[account_id]
|
|
|
|
|
material_symbol('sync_alt', title: I18n.t('relationships.mutual'), class: 'active passive')
|
|
|
|
|