Skip to content

Commit

Permalink
Change confirmation prompt on trending management (mastodon#19626)
Browse files Browse the repository at this point in the history
  • Loading branch information
tribela authored Aug 9, 2024
1 parent 9538d9c commit 9bae237
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
8 changes: 4 additions & 4 deletions app/views/admin/trends/links/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@
.batch-table__toolbar__actions
= f.button safe_join([material_symbol('check'), t('admin.trends.links.allow')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
data: { confirm: t('admin.trends.links.confirm_allow') },
name: :approve,
type: :submit
= f.button safe_join([material_symbol('check'), t('admin.trends.links.allow_provider')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
data: { confirm: t('admin.trends.links.confirm_allow_provider') },
name: :approve_providers,
type: :submit
= f.button safe_join([material_symbol('close'), t('admin.trends.links.disallow')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
data: { confirm: t('admin.trends.links.confirm_disallow') },
name: :reject,
type: :submit
= f.button safe_join([material_symbol('close'), t('admin.trends.links.disallow_provider')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
data: { confirm: t('admin.trends.links.confirm_disallow_provider') },
name: :reject_providers,
type: :submit
.batch-table__body
Expand Down
8 changes: 4 additions & 4 deletions app/views/admin/trends/statuses/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@
.batch-table__toolbar__actions
= f.button safe_join([material_symbol('check'), t('admin.trends.statuses.allow')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
data: { confirm: t('admin.trends.statuses.confirm_allow') },
name: :approve,
type: :submit
= f.button safe_join([material_symbol('check'), t('admin.trends.statuses.allow_account')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
data: { confirm: t('admin.trends.statuses.confirm_allow_account') },
name: :approve_accounts,
type: :submit
= f.button safe_join([material_symbol('close'), t('admin.trends.statuses.disallow')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
data: { confirm: t('admin.trends.statuses.confirm_disallow') },
name: :reject,
type: :submit
= f.button safe_join([material_symbol('close'), t('admin.trends.statuses.disallow_account')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
data: { confirm: t('admin.trends.statuses.confirm_disallow_account') },
name: :reject_accounts,
type: :submit
.batch-table__body
Expand Down
4 changes: 2 additions & 2 deletions app/views/admin/trends/tags/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
.batch-table__toolbar__actions
= f.button safe_join([material_symbol('check'), t('admin.trends.allow')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
data: { confirm: t('admin.trends.confirm_allow') },
name: :approve,
type: :submit
= f.button safe_join([material_symbol('close'), t('admin.trends.disallow')]),
class: 'table-action-link',
data: { confirm: t('admin.reports.are_you_sure') },
data: { confirm: t('admin.trends.confirm_disallow') },
name: :reject,
type: :submit

Expand Down
10 changes: 10 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,16 @@ en:
trends:
allow: Allow
approved: Approved
confirm_allow: Are you sure you want to allow selected tags?
confirm_disallow: Are you sure you want to disallow selected tags?
disallow: Disallow
links:
allow: Allow link
allow_provider: Allow publisher
confirm_allow: Are you sure you want to allow selected links?
confirm_allow_provider: Are you sure you want to allow selected providers?
confirm_disallow: Are you sure you want to disallow selected links?
confirm_disallow_provider: Are you sure you want to disallow selected providers?
description_html: These are links that are currently being shared a lot by accounts that your server sees posts from. It can help your users find out what's going on in the world. No links are displayed publicly until you approve the publisher. You can also allow or reject individual links.
disallow: Disallow link
disallow_provider: Disallow publisher
Expand All @@ -934,6 +940,10 @@ en:
statuses:
allow: Allow post
allow_account: Allow author
confirm_allow: Are you sure you want to allow selected statuses?
confirm_allow_account: Are you sure you want to allow selected accounts?
confirm_disallow: Are you sure you want to disallow selected statuses?
confirm_disallow_account: Are you sure you want to disallow selected accounts?
description_html: These are posts that your server knows about that are currently being shared and favorited a lot at the moment. It can help your new and returning users to find more people to follow. No posts are displayed publicly until you approve the author, and the author allows their account to be suggested to others. You can also allow or reject individual posts.
disallow: Disallow post
disallow_account: Disallow author
Expand Down

0 comments on commit 9bae237

Please sign in to comment.