You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.2 KiB

  1. - content_for :page_title do
  2. = t('settings.export')
  3. .table-wrapper
  4. %table.table
  5. %tbody
  6. %tr
  7. %th= t('exports.storage')
  8. %td= number_to_human_size @export.total_storage
  9. %td
  10. %tr
  11. %th= t('accounts.posts', count: @export.total_statuses)
  12. %td= number_with_delimiter @export.total_statuses
  13. %td
  14. %tr
  15. %th= t('exports.follows')
  16. %td= number_with_delimiter @export.total_follows
  17. %td= table_link_to 'download', t('exports.csv'), settings_exports_follows_path(format: :csv)
  18. %tr
  19. %th= t('exports.lists')
  20. %td= number_with_delimiter @export.total_lists
  21. %td= table_link_to 'download', t('exports.csv'), settings_exports_lists_path(format: :csv)
  22. %tr
  23. %th= t('accounts.followers', count: @export.total_followers)
  24. %td= number_with_delimiter @export.total_followers
  25. %td
  26. %tr
  27. %th= t('exports.blocks')
  28. %td= number_with_delimiter @export.total_blocks
  29. %td= table_link_to 'download', t('exports.csv'), settings_exports_blocks_path(format: :csv)
  30. %tr
  31. %th= t('exports.mutes')
  32. %td= number_with_delimiter @export.total_mutes
  33. %td= table_link_to 'download', t('exports.csv'), settings_exports_mutes_path(format: :csv)
  34. %tr
  35. %th= t('exports.domain_blocks')
  36. %td= number_with_delimiter @export.total_domain_blocks
  37. %td= table_link_to 'download', t('exports.csv'), settings_exports_domain_blocks_path(format: :csv)
  38. %p.muted-hint= t('exports.archive_takeout.hint_html')
  39. - if policy(:backup).create?
  40. %p= link_to t('exports.archive_takeout.request'), settings_export_path, class: 'button', method: :post
  41. - unless @backups.empty?
  42. .table-wrapper
  43. %table.table
  44. %thead
  45. %tr
  46. %th= t('exports.archive_takeout.date')
  47. %th= t('exports.archive_takeout.size')
  48. %th
  49. %tbody
  50. - @backups.each do |backup|
  51. %tr
  52. %td= l backup.created_at
  53. - if backup.processed?
  54. %td= number_to_human_size backup.dump_file_size
  55. %td= table_link_to 'download', t('exports.archive_takeout.download'), backup.dump.url
  56. - else
  57. %td{ colspan: 2 }= t('exports.archive_takeout.in_progress')