Added/Updated admin dashboard tables
• Added: - New Account filtering - PreviewCard viewing/sorting/filtering deleting (todo) - DeletePreviewCardWorker, Service - Status viewing/sorting/filtering deleting - ChatMessage viewing/sorting/filtering deleting (todo) - Account > Follows view • Updated: - LinkBlock to sort alphabetically - Groups to be under "Moderation" instead of "Admin" in navigation.rb - Status in admin to have group name/link - Reports reset button - Group filtering/sorting - LinkBlock filtering/sorting - Account now has bio and few more data points in dashboard
This commit is contained in:
@@ -2,19 +2,26 @@
|
||||
= javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
|
||||
|
||||
- content_for :page_title do
|
||||
%span Chat Messages
|
||||
\-
|
||||
= "@#{@account.acct}"
|
||||
= "Chat Messages"
|
||||
|
||||
.filters
|
||||
.back-link{ style: 'flex: 1 1 auto; text-align: right' }
|
||||
= link_to admin_account_path(@account.id) do
|
||||
= fa_icon 'chevron-left fw'
|
||||
%span Back to account
|
||||
= form_tag admin_chat_messages_url, method: 'GET', class: 'simple_form' do
|
||||
.fields-group
|
||||
.input.string.optional
|
||||
= text_field_tag :text, params[:text], class: 'string optional', placeholder: "Text contains"
|
||||
.input.string.optional
|
||||
= text_field_tag :id, params[:id], class: 'string optional', placeholder: "Id"
|
||||
.input.string.optional
|
||||
= text_field_tag :account_id, params[:account_id], class: 'string optional', placeholder: "Account Id"
|
||||
.input.string.optional
|
||||
= text_field_tag :created_at_gte, params[:created_at_gte], class: 'string optional', placeholder: "Created >= (MM-DD-YYYY)"
|
||||
.input.string.optional
|
||||
= text_field_tag :created_at_lte, params[:created_at_lte], class: 'string optional', placeholder: "Created <= (MM-DD-YYYY)"
|
||||
|
||||
.actions
|
||||
%button= t('admin.accounts.search')
|
||||
= link_to t('admin.accounts.reset'), admin_chat_messages_path, class: 'button negative'
|
||||
|
||||
%hr.spacer/
|
||||
|
||||
= form_for(@form, url: admin_account_chat_messages_path(@account.id)) do |f|
|
||||
= form_for(@form, url: admin_chat_messages_path('')) do |f|
|
||||
= hidden_field_tag :page, params[:page]
|
||||
|
||||
.batch-table
|
||||
|
||||
Reference in New Issue
Block a user