2024-03-20 15:37:21 +00:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('settings.severed_relationships')
|
|
|
|
|
|
|
|
%p.muted-hint= t('severed_relationships.preamble')
|
|
|
|
|
|
|
|
- unless @events.empty?
|
|
|
|
.table-wrapper
|
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= t('exports.archive_takeout.date')
|
|
|
|
%th= t('severed_relationships.type')
|
|
|
|
%th= t('severed_relationships.lost_follows')
|
|
|
|
%th= t('severed_relationships.lost_followers')
|
|
|
|
%tbody
|
|
|
|
- @events.each do |event|
|
|
|
|
%tr
|
|
|
|
%td= l event.created_at
|
|
|
|
%td= t("severed_relationships.event_type.#{event.type}", target_name: event.target_name)
|
|
|
|
- if event.purged?
|
|
|
|
%td{ rowspan: 2 }= t('severed_relationships.purged')
|
|
|
|
- else
|
|
|
|
%td
|
2024-03-22 15:44:31 +00:00
|
|
|
- count = event.following_count
|
2024-03-20 15:37:21 +00:00
|
|
|
- if count.zero?
|
|
|
|
= t('generic.none')
|
|
|
|
- else
|
|
|
|
= table_link_to 'download', t('severed_relationships.download', count: count), following_severed_relationship_path(event, format: :csv)
|
|
|
|
%td
|
2024-03-22 15:44:31 +00:00
|
|
|
- count = event.followers_count
|
2024-03-20 15:37:21 +00:00
|
|
|
- if count.zero?
|
|
|
|
= t('generic.none')
|
|
|
|
- else
|
|
|
|
= table_link_to 'download', t('severed_relationships.download', count: count), followers_severed_relationship_path(event, format: :csv)
|