about summary refs log tree commit diff
path: root/app/views/relationships/_account.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-03-16 11:23:22 +0100
committerGitHub <noreply@github.com>2019-03-16 11:23:22 +0100
commit1c113fd72df18999de1d6f09fa3790dd1f715506 (patch)
tree6a2683eb7d63cca3e568f6f2786f77e606320bb1 /app/views/relationships/_account.html.haml
parent8da5b8e6695e3bcca8eb4bca754faef83a6656eb (diff)
Add relationship manager UI (#10268)
Diffstat (limited to 'app/views/relationships/_account.html.haml')
-rw-r--r--app/views/relationships/_account.html.haml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/relationships/_account.html.haml b/app/views/relationships/_account.html.haml
new file mode 100644
index 000000000..6c22deb51
--- /dev/null
+++ b/app/views/relationships/_account.html.haml
@@ -0,0 +1,20 @@
+.batch-table__row
+  %label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
+    = f.check_box :account_ids, { multiple: true, include_hidden: false }, account.id
+  .batch-table__row__content.batch-table__row__content--unpadded
+    %table.accounts-table
+      %tbody
+        %tr
+          %td= account_link_to account
+          %td.accounts-table__count.optional
+            = number_to_human account.statuses_count, strip_insignificant_zeros: true
+            %small= t('accounts.posts', count: account.statuses_count).downcase
+          %td.accounts-table__count.optional
+            = number_to_human account.followers_count, strip_insignificant_zeros: true
+            %small= t('accounts.followers', count: account.followers_count).downcase
+          %td.accounts-table__count
+            - if account.last_status_at.present?
+              %time.time-ago{ datetime: account.last_status_at.iso8601, title: l(account.last_status_at) }= l account.last_status_at
+            - else
+              \-
+            %small= t('accounts.last_active')