Progress
Albums almost done, group, chat moderation, photo, video page updates
This commit is contained in:
16
app/views/admin/chat_messages/_chat_message.html.haml
Normal file
16
app/views/admin/chat_messages/_chat_message.html.haml
Normal file
@@ -0,0 +1,16 @@
|
||||
.batch-table__row
|
||||
%label.batch-table__row__select.batch-checkbox
|
||||
= f.check_box :chat_message_ids, { multiple: true, include_hidden: false }, chat_message.id
|
||||
.batch-table__row__content
|
||||
%div{:style=>"display:flex;flex-direction:column;"}
|
||||
%span= chat_message.text
|
||||
%div{:style=> "display:block;color:#555;"}
|
||||
%span Created:
|
||||
%span= chat_message.created_at
|
||||
- if chat_message.expires_at
|
||||
%div{:style=> "display:block;color:#555;"}
|
||||
%span Expires:
|
||||
%span= chat_message.expires_at
|
||||
%div{:style=> "display:block;color:#555;"}
|
||||
%span In conversation:
|
||||
%span= chat_message.chat_conversation_id
|
||||
@@ -1,28 +1,29 @@
|
||||
- content_for :header_tags do
|
||||
= javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
|
||||
|
||||
- content_for :page_title do
|
||||
= t('admin.followers.title', acct: @account.acct)
|
||||
%span Chat Messages
|
||||
\-
|
||||
= "@#{@account.acct}"
|
||||
|
||||
.filters
|
||||
.filter-subset
|
||||
%strong= t('admin.accounts.location.title')
|
||||
%ul
|
||||
%li= link_to t('admin.accounts.location.local'), admin_account_followers_path(@account.id), class: 'selected'
|
||||
.back-link{ style: 'flex: 1 1 auto; text-align: right' }
|
||||
= link_to admin_account_path(@account.id) do
|
||||
= fa_icon 'chevron-left fw'
|
||||
= t('admin.followers.back_to_account')
|
||||
%span Back to account
|
||||
|
||||
%hr.spacer/
|
||||
|
||||
.table-wrapper
|
||||
%table.table
|
||||
%thead
|
||||
%tr
|
||||
%th= t('admin.accounts.username')
|
||||
%th= t('admin.accounts.role')
|
||||
%th= t('admin.accounts.most_recent_ip')
|
||||
%th= t('admin.accounts.most_recent_activity')
|
||||
%th
|
||||
%tbody
|
||||
= render partial: 'admin/accounts/account', collection: @followers
|
||||
= form_for(@form, url: admin_account_chat_messages_path(@account.id)) do |f|
|
||||
= hidden_field_tag :page, params[:page]
|
||||
|
||||
= paginate @followers
|
||||
.batch-table
|
||||
.batch-table__toolbar
|
||||
%label.batch-table__toolbar__select.batch-checkbox-all
|
||||
= check_box_tag :batch_checkbox_all, nil, false
|
||||
.batch-table__toolbar__actions
|
||||
= f.button safe_join([fa_icon('trash'), 'Delete']), name: :delete, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
|
||||
.batch-table__body
|
||||
= render partial: 'admin/chat_messages/chat_message', collection: @chat_messages, locals: { f: f }
|
||||
|
||||
= paginate @chat_messages
|
||||
|
||||
Reference in New Issue
Block a user