Use account display name for pretend blog example in attribution area (#32188)

This commit is contained in:
Matt Jankowski 2024-10-01 04:19:53 -04:00 committed by GitHub
parent 07cd1fd1ef
commit 0b6d217b9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,13 +50,13 @@
= image_tag frontend_asset_url('images/preview.png'), alt: '', class: 'status-card__image-image'
.status-card__content
%span.status-card__host
%span= t('author_attribution.s_blog', name: @account.username)
%span= t('author_attribution.s_blog', name: display_name(@account))
·
%time.time-ago{ datetime: 1.year.ago.to_date.iso8601 }
%strong.status-card__title= t('author_attribution.example_title')
.more-from-author
= logo_as_symbol(:icon)
= t('author_attribution.more_from_html', name: link_to(root_url, class: 'story__details__shared__author-link') { image_tag(@account.avatar.url, class: 'account__avatar', width: 16, height: 16, alt: '') + content_tag(:bdi, display_name(@account)) })
= t('author_attribution.more_from_html', name: link_to(root_url, class: 'story__details__shared__author-link') { image_tag(@account.avatar.url, class: 'account__avatar', width: 16, height: 16, alt: '') + tag.bdi(display_name(@account)) })
.actions
= f.button :button, t('generic.save_changes'), type: :submit