mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-19 01:25:06 +01:00
3ddd936b03
* Add basic coverage for settings/exports controller * Remove unused @account variable from settings/exports controller * Add coverage for download export actions * Remove deprecated `render :text` in favor of `send_data` for csv downloads * Add model to handle exports * Use Export class in settings/exports controller * Simplify settings/exports controller methods * Move settings/export to more restful routes
18 lines
501 B
Plaintext
18 lines
501 B
Plaintext
- content_for :page_title do
|
|
= t('settings.export')
|
|
|
|
%table.table
|
|
%tbody
|
|
%tr
|
|
%th= t('exports.storage')
|
|
%td= number_to_human_size @total_storage
|
|
%td
|
|
%tr
|
|
%th= t('exports.follows')
|
|
%td= @total_follows
|
|
%td= table_link_to 'download', t('exports.csv'), settings_exports_follows_path(format: :csv)
|
|
%tr
|
|
%th= t('exports.blocks')
|
|
%td= @total_blocks
|
|
%td= table_link_to 'download', t('exports.csv'), settings_exports_blocks_path(format: :csv)
|