Change confirmation prompt for trending management

This commit is contained in:
Jeong Arm 2022-11-01 19:27:08 +09:00
parent ed99923138
commit 089cdfdd15
4 changed files with 20 additions and 10 deletions

View File

@ -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

View File

@ -33,22 +33,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

View File

@ -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

View File

@ -885,10 +885,16 @@ en:
trends:
allow: Allow
approved: Approved
confirm_allow: Are you sure to allow selected tags?
confirm_disallow: Are you sure to disallow selected tags?
disallow: Disallow
links:
allow: Allow link
allow_provider: Allow publisher
confirm_allow: Are you sure to allow selected links?
confirm_allow_provider: Are you sure to allow selected providers?
confirm_disallow: Are you sure to disallow selected links?
confirm_disallow_provider: Are you sure 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
@ -912,6 +918,10 @@ en:
statuses:
allow: Allow post
allow_account: Allow author
confirm_allow: Are you sure to allow selected statuses?
confirm_allow_account: Are you sure to allow selected accounts?
confirm_disallow: Are you sure to disallow selected statuses?
confirm_disallow_account: Are you sure 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