Crowdin / Upload translations / upload-translations (push) Skipped
Historical data migration test / test (14-alpine) (push) Canceled after 0s
Historical data migration test / test (15-alpine) (push) Canceled after 0s
Historical data migration test / test (16-alpine) (push) Canceled after 0s
Historical data migration test / test (17-alpine) (push) Canceled after 0s
Bundler Audit / security (push) Canceled after 0s
Haml Linting / lint (push) Canceled after 0s
JavaScript Linting / lint (push) Canceled after 0s
Ruby Linting / lint (push) Canceled after 0s
JavaScript Testing / test (push) Canceled after 0s
Ruby Testing / build (production) (push) Canceled after 0s
Ruby Testing / test (.ruby-version) (push) Canceled after 0s
Ruby Testing / test (3.3) (push) Canceled after 0s
Ruby Testing / test (3.4) (push) Canceled after 0s
Ruby Testing / End to End testing (.ruby-version) (push) Canceled after 0s
Ruby Testing / End to End testing (3.3) (push) Canceled after 0s
Ruby Testing / End to End testing (3.4) (push) Canceled after 0s
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.29) (push) Canceled after 0s
Check i18n / check-i18n (push) Canceled after 0s
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (javascript) (push) Canceled after 0s
CodeQL / Analyze (ruby) (push) Canceled after 0s
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Canceled after 0s
Ruby Testing / Elastic Search integration testing (3.3, docker.elastic.co/elasticsearch/elasticsearch:7.17.29) (push) Canceled after 0s
Ruby Testing / Elastic Search integration testing (3.4, docker.elastic.co/elasticsearch/elasticsearch:7.17.29) (push) Canceled after 0s
Check formatting / lint (push) Canceled after 0s
CSS Linting / lint (push) Canceled after 0s
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.19.2) (push) Canceled after 0s
Chromatic / Check for relevant changes (push) Canceled after 0s
Chromatic / Run Chromatic (push) Canceled after 0s
Snapshot of upstream tag v4.7.3 (commit 8ff11c2bb7b9f0714e947b10fa3629c6542c7121) from https://github.com/mastodon/mastodon, unmodified.
83 lines
3.7 KiB
Plaintext
83 lines
3.7 KiB
Plaintext
- content_for :page_title do
|
|
= t('disputes.strikes.title', action: t(@strike.action, scope: 'disputes.strikes.title_actions'), date: l(@strike.created_at.to_date))
|
|
|
|
- content_for :heading_actions do
|
|
- if @appeal.persisted?
|
|
= link_to t('disputes.strikes.approve_appeal'), approve_admin_disputes_appeal_path(@appeal), method: :post, class: 'button' if can?(:approve, @appeal)
|
|
= link_to t('disputes.strikes.reject_appeal'), reject_admin_disputes_appeal_path(@appeal), method: :post, class: 'button button--destructive' if can?(:reject, @appeal)
|
|
|
|
- if @strike.overruled?
|
|
%p.hint
|
|
%span.positive-hint
|
|
= material_symbol 'check'
|
|
|
|
= t 'disputes.strikes.appeal_approved'
|
|
- elsif @appeal.persisted? && @appeal.rejected?
|
|
%p.hint
|
|
%span.negative-hint
|
|
= material_symbol 'close'
|
|
|
|
= t 'disputes.strikes.appeal_rejected'
|
|
|
|
.report-header
|
|
.report-header__card
|
|
= render 'disputes/strikes/card', strike: @strike
|
|
|
|
.report-header__details
|
|
.report-header__details__item
|
|
.report-header__details__item__header
|
|
%strong= t('disputes.strikes.created_at')
|
|
.report-header__details__item__content
|
|
%time.formatted{ datetime: @strike.created_at.iso8601, title: l(@strike.created_at) }= l(@strike.created_at)
|
|
.report-header__details__item
|
|
.report-header__details__item__header
|
|
%strong= t('disputes.strikes.recipient')
|
|
.report-header__details__item__content
|
|
= link_to @strike.target_account.username, can?(:show, @strike.target_account) ? admin_account_path(@strike.target_account_id) : ActivityPub::TagManager.instance.url_for(@strike.target_account), class: 'table-action-link'
|
|
.report-header__details__item
|
|
.report-header__details__item__header
|
|
%strong= t('disputes.strikes.action_taken')
|
|
.report-header__details__item__content
|
|
- if @strike.overruled?
|
|
%del= t(@strike.action, scope: 'user_mailer.warning.title')
|
|
- else
|
|
= t(@strike.action, scope: 'user_mailer.warning.title')
|
|
- if @strike.report && can?(:show, @strike.report)
|
|
.report-header__details__item
|
|
.report-header__details__item__header
|
|
%strong= t('disputes.strikes.associated_report')
|
|
.report-header__details__item__content
|
|
= link_to t('admin.reports.report', id: @strike.report.id), admin_report_path(@strike.report), class: 'table-action-link'
|
|
- if @appeal.persisted?
|
|
.report-header__details__item
|
|
.report-header__details__item__header
|
|
%strong= t('disputes.strikes.appeal_submitted_at')
|
|
.report-header__details__item__content
|
|
%time.formatted{ datetime: @appeal.created_at.iso8601, title: l(@appeal.created_at) }= l(@appeal.created_at)
|
|
%hr.spacer/
|
|
|
|
- if @appeal.persisted?
|
|
%h3= t('disputes.strikes.appeal')
|
|
|
|
.report-notes
|
|
.report-notes__item
|
|
= image_tag @appeal.account.avatar.url, class: 'report-notes__item__avatar'
|
|
|
|
.report-notes__item__header
|
|
%span.username
|
|
= link_to @appeal.account.username, can?(:show, @appeal.account) ? admin_account_path(@appeal.account_id) : short_account_url(@appeal.account)
|
|
%time.relative-formatted{ datetime: @appeal.created_at.iso8601, title: @appeal.created_at }
|
|
= l @appeal.created_at.to_date
|
|
|
|
.report-notes__item__content
|
|
= simple_format(h(@appeal.text))
|
|
- elsif can?(:appeal, @strike)
|
|
%h3= t('disputes.strikes.appeals.submit')
|
|
|
|
= simple_form_for(@appeal, url: disputes_strike_appeal_path(@strike)) do |f|
|
|
.fields-group
|
|
= f.input :text, wrapper: :with_label, input_html: { maxlength: Appeal::TEXT_LENGTH_LIMIT }
|
|
|
|
.actions
|
|
= f.button :button, t('disputes.strikes.appeals.submit'), type: :submit
|