mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-15 01:46:35 +00:00
0e362b7678
* Move some inline styles to CSS files * Move default_account_display_name span to fix useless tags with duplicate id * Change handling of public pages spoiler text from inline CSS to dataset attribute * Use the `dir` HTML attribute instead of inline CSS * Move status action bar inline CSS to CSS file * Hide logo resources from CSS file, not inline CSS Fixes #11601 * Move translation prompt styling from inline CSS to CSS file * Move “invited by” styling on registration form from inline to CSS file * Use the progress tag to display poll results in JS fallback * Fix poll results JS-less fallback when the user has voted for an option * Change account public page “moved” notice to use img tags instead of inline CSS * Move OTP hint inline CSS to SCSS file * Hide JS-less fallback vote progressbars from accessibility tools Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
- moved_to_account = account.moved_to_account
|
|
|
|
.moved-account-widget
|
|
.moved-account-widget__message
|
|
= fa_icon 'suitcase'
|
|
= t('accounts.moved_html', name: content_tag(:bdi, content_tag(:strong, display_name(account, custom_emojify: true), class: :emojify)), new_profile_link: link_to(content_tag(:strong, safe_join(['@', content_tag(:span, moved_to_account.acct)])), ActivityPub::TagManager.instance.url_for(moved_to_account), class: 'mention'))
|
|
|
|
.moved-account-widget__card
|
|
= link_to ActivityPub::TagManager.instance.url_for(moved_to_account), class: 'detailed-status__display-name p-author h-card', target: '_blank', rel: 'me noopener noreferrer' do
|
|
.detailed-status__display-avatar
|
|
.account__avatar-overlay
|
|
.account__avatar-overlay-base
|
|
= image_tag moved_to_account.avatar_static_url
|
|
.account__avatar-overlay-overlay
|
|
= image_tag account.avatar_static_url
|
|
|
|
%span.display-name
|
|
%bdi
|
|
%strong.emojify= display_name(moved_to_account, custom_emojify: true)
|
|
%span @#{moved_to_account.acct}
|