]> cat aescling's git repositories - mastodon.git/commitdiff
Fix ambiguous wording on appeal actions (#18328)
authorClaire <claire.github-309c@sitedethib.com>
Fri, 6 May 2022 19:41:34 +0000 (21:41 +0200)
committersingle-right-quote <11325618-aescling@users.noreply.gitlab.com>
Fri, 27 May 2022 03:32:56 +0000 (23:32 -0400)
Fixes #18322

app/views/disputes/strikes/show.html.haml
config/locales/en.yml

index 0b71e14a3f79cdb0a6cc5d20feceb55f49188208..1be50331a4eab8894f265518d49fd290820d0602 100644 (file)
@@ -3,8 +3,8 @@
 
 - content_for :heading_actions do
   - if @appeal.persisted?
-    = link_to t('admin.accounts.approve'), approve_admin_disputes_appeal_path(@appeal), method: :post, class: 'button' if can?(:approve, @appeal)
-    = link_to t('admin.accounts.reject'), reject_admin_disputes_appeal_path(@appeal), method: :post, class: 'button button--destructive' if can?(:reject, @appeal)
+    = 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
index a90409a7c7fa436970bbcfeee2a72e0ccec8510b..2c8455d0aedc08cd560b689dfcdf90fb4e57a2a1 100644 (file)
@@ -1036,10 +1036,12 @@ en:
       appealed_msg: Your appeal has been submitted. If it is approved, you will be notified.
       appeals:
         submit: Submit appeal
+      approve_appeal: Approve appeal
       associated_report: Associated report
       created_at: Dated
       description_html: These are actions taken against your account and warnings that have been sent to you by the staff of %{instance}.
       recipient: Addressed to
+      reject_appeal: Reject appeal
       status: 'Post #%{id}'
       status_removed: Post already removed from system
       title: "%{action} from %{date}"