about summary refs log tree commit diff
path: root/app/views/accounts/_moved.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-07-28 19:25:33 +0200
committerGitHub <noreply@github.com>2018-07-28 19:25:33 +0200
commitbb71538bb503159177d46d8956bd466973c0876b (patch)
tree41e39f53b365d91f83cfe393d75ddf8a1624ded9 /app/views/accounts/_moved.html.haml
parente23b26178a71f90d64fe2a3e9e4468f265ecc71c (diff)
Redesign public profiles and toots (#8068)
Diffstat (limited to 'app/views/accounts/_moved.html.haml')
-rw-r--r--app/views/accounts/_moved.html.haml18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/accounts/_moved.html.haml b/app/views/accounts/_moved.html.haml
new file mode 100644
index 000000000..f99328dbd
--- /dev/null
+++ b/app/views/accounts/_moved.html.haml
@@ -0,0 +1,18 @@
+- 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)])), TagManager.instance.url_for(moved_to_account), class: 'mention'))
+
+  .moved-account-widget__card
+    = link_to TagManager.instance.url_for(moved_to_account), class: 'detailed-status__display-name p-author h-card', target: '_blank', rel: 'noopener' do
+      .detailed-status__display-avatar
+        .account__avatar-overlay
+          .account__avatar-overlay-base{ style: "background-image: url('#{moved_to_account.avatar.url(:original)}')" }
+          .account__avatar-overlay-overlay{ style: "background-image: url('#{account.avatar.url(:original)}')" }
+
+      %span.display-name
+        %bdi
+          %strong.emojify= display_name(moved_to_account, custom_emojify: true)
+        %span @#{moved_to_account.acct}