Files
mastodon/app/views/admin/announcements/previews/show.html.haml
2026-03-02 14:43:57 +00:00

30 lines
1.0 KiB
Plaintext

- content_for :page_title do
= t('admin.announcements.preview.title')
- content_for :heading_actions do
.back-link
= link_to admin_announcements_path do
= material_symbol 'chevron_left'
= t('admin.announcements.back')
.flash-message.info= t('admin.announcements.preview.disclaimer')
%p.lead
= t('admin.announcements.preview.explanation_html', count: @user_count, display_count: number_with_delimiter(@user_count))
.prose
= linkify(@announcement.text)
%hr.spacer/
.content__heading__actions
= link_to t('admin.terms_of_service.preview.send_preview', email: current_user.email),
admin_announcement_test_path(@announcement),
class: 'button button-secondary',
method: :post
= link_to t('admin.terms_of_service.preview.send_to_all', count: @user_count, display_count: number_with_delimiter(@user_count)),
admin_announcement_distribution_path(@announcement),
class: 'button',
data: { confirm: t('admin.reports.are_you_sure') },
method: :post