Updated admin dashboard for ChatConversationAccounts

• Updated:
- admin dashboard for ChatConversationAccounts
This commit is contained in:
mgabdev
2021-01-13 19:12:57 -05:00
parent 183e46aa57
commit 89a16b101f
6 changed files with 40 additions and 32 deletions

View File

@@ -0,0 +1,12 @@
%tr
%td
= admin_account_link_to(chat_conversation_account.account)
%td
- chat_conversation_account.participant_account_ids.each do |a|
%a{href: "/admin/accounts/#{a}"}= a
%td
%span= chat_conversation_account.is_approved ? "Y" : "N"
%td
%span= chat_conversation_account.is_hidden ? "Y" : "N"
%td
%span= chat_conversation_account.is_muted ? "Y" : "N"

View File

@@ -0,0 +1,24 @@
- content_for :page_title do
%span= "Chat conversations including: @#{@account.acct}"
.filters
.back-link{ style: 'flex: 1 1 auto; text-align: left' }
= link_to admin_account_path(@account.id) do
= fa_icon 'chevron-left fw'
= t('admin.followers.back_to_account')
%hr.spacer/
.table-wrapper
%table.table
%thead
%tr
%th Account
%th Members
%th Approved?
%th Hidden?
%th Muted?
%tbody
= render @chat_conversation_accounts
= paginate @chat_conversation_accounts