mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02: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)
|