about summary refs log tree commit diff
path: root/app/views/settings
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-04-11 16:00:43 -0400
committerEugen <eugen@zeonfederated.com>2017-04-11 22:00:43 +0200
commit3ddd936b039474259cff3793c767ecb7f74e89e0 (patch)
treedef84f4d35f11defaeb779049fec3f45998d9135 /app/views/settings
parent1921c5416b08d8374ee7aee6c072eed9b67c58c8 (diff)
Refactor exports controller (#1567)
* 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
Diffstat (limited to 'app/views/settings')
-rw-r--r--app/views/settings/exports/show.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/settings/exports/show.html.haml b/app/views/settings/exports/show.html.haml
index 0a0ff8633..432a61b4a 100644
--- a/app/views/settings/exports/show.html.haml
+++ b/app/views/settings/exports/show.html.haml
@@ -10,8 +10,8 @@
     %tr
       %th= t('exports.follows')
       %td= @total_follows
-      %td= table_link_to 'download', t('exports.csv'), follows_settings_export_path(format: :csv)
+      %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'), blocks_settings_export_path(format: :csv)
+      %td= table_link_to 'download', t('exports.csv'), settings_exports_blocks_path(format: :csv)