logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

show.html.haml (1516B)


  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('exports.follows')
  12. %td= @export.total_follows
  13. %td= table_link_to 'download', t('exports.csv'), settings_exports_follows_path(format: :csv)
  14. %tr
  15. %th= t('exports.blocks')
  16. %td= @export.total_blocks
  17. %td= table_link_to 'download', t('exports.csv'), settings_exports_blocks_path(format: :csv)
  18. %tr
  19. %th= t('exports.mutes')
  20. %td= @export.total_mutes
  21. %td= table_link_to 'download', t('exports.csv'), settings_exports_mutes_path(format: :csv)
  22. %p.muted-hint= t('exports.archive_takeout.hint_html')
  23. - if policy(:backup).create?
  24. %p= link_to t('exports.archive_takeout.request'), settings_export_path, class: 'button', method: :post
  25. - unless @backups.empty?
  26. .table-wrapper
  27. %table.table
  28. %thead
  29. %tr
  30. %th= t('exports.archive_takeout.date')
  31. %th= t('exports.archive_takeout.size')
  32. %th
  33. %tbody
  34. - @backups.each do |backup|
  35. %tr
  36. %td= l backup.created_at
  37. - if backup.processed?
  38. %td= number_to_human_size backup.dump_file_size
  39. %td= table_link_to 'download', t('exports.archive_takeout.download'), backup.dump.url
  40. - else
  41. %td{ colspan: 2 }= t('exports.archive_takeout.in_progress')