show.html.haml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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_tab_heading')
  12. %td= number_with_delimiter @export.total_statuses
  13. %td
  14. %tr
  15. %th= t('admin.accounts.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('admin.accounts.followers')
  24. %td= number_with_delimiter @export.total_followers
  25. %td
  26. %tr
  27. %th= t('exports.mutes')
  28. %td= number_with_delimiter @export.total_mutes
  29. %td= table_link_to 'download', t('exports.csv'), settings_exports_mutes_path(format: :csv)
  30. %tr
  31. %th= t('exports.blocks')
  32. %td= number_with_delimiter @export.total_blocks
  33. %td= table_link_to 'download', t('exports.csv'), settings_exports_blocks_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. %tr
  39. %th= t('exports.bookmarks')
  40. %td= number_with_delimiter @export.total_bookmarks
  41. %td= table_link_to 'download', t('exports.csv'), settings_exports_bookmarks_path(format: :csv)
  42. %hr.spacer/
  43. %p.muted-hint= t('exports.archive_takeout.hint_html')
  44. - if policy(:backup).create?
  45. %p= link_to t('exports.archive_takeout.request'), settings_export_path, class: 'button', method: :post
  46. - unless @backups.empty?
  47. %hr.spacer/
  48. .table-wrapper
  49. %table.table
  50. %thead
  51. %tr
  52. %th= t('exports.archive_takeout.date')
  53. %th= t('exports.archive_takeout.size')
  54. %th
  55. %tbody
  56. - @backups.each do |backup|
  57. %tr
  58. %td= l backup.created_at
  59. - if backup.processed?
  60. %td= number_to_human_size backup.dump_file_size
  61. %td= table_link_to 'download', t('exports.archive_takeout.download'), download_backup_url(backup)
  62. - else
  63. %td{ colspan: 2 }= t('exports.archive_takeout.in_progress')