1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-15 15:18:14 +09:00
mastodon/app/views/admin/announcements/index.html.haml
2024-10-04 12:29:43 +00:00

22 lines
729 B
Plaintext

- content_for :page_title do
= t('admin.announcements.title')
- content_for :heading_actions do
= link_to t('admin.announcements.new.title'), new_admin_announcement_path, class: 'button'
.filters
.filter-subset
%strong= t('admin.relays.status')
%ul
%li= filter_link_to t('generic.all'), published: nil, unpublished: nil
%li= filter_link_to safe_join([t('admin.announcements.live'), "(#{number_with_delimiter(@published_announcements_count.value)})"], ' '), published: '1', unpublished: nil
- if @announcements.empty?
.muted-hint.center-text
= t 'admin.announcements.empty'
- else
.announcements-list
= render partial: 'announcement', collection: @announcements
= paginate @announcements