about summary refs log tree commit diff
path: root/app/views/settings
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-04-13 07:02:02 -0400
committerEugen <eugen@zeonfederated.com>2017-04-13 13:02:02 +0200
commit0e39cc6a35661416a1f1ccb8841863f7bf307020 (patch)
tree7905b859d61ff98ca63a66eb86c50da4834e9c89 /app/views/settings
parentfaefd8ec8f164e174fd887f06d01c7fe8ed05531 (diff)
Settings export refactor (#1646)
* Refactor Export to take an account and know about the export types

* Use Export instance in settings/exports#show
Diffstat (limited to 'app/views/settings')
-rw-r--r--app/views/settings/exports/show.html.haml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/settings/exports/show.html.haml b/app/views/settings/exports/show.html.haml
index 51be40fb6..f2f6f9556 100644
--- a/app/views/settings/exports/show.html.haml
+++ b/app/views/settings/exports/show.html.haml
@@ -5,17 +5,17 @@
   %tbody
     %tr
       %th= t('exports.storage')
-      %td= number_to_human_size @total_storage
+      %td= number_to_human_size @export.total_storage
       %td
     %tr
       %th= t('exports.follows')
-      %td= @total_follows
+      %td= @export.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= @export.total_blocks
       %td= table_link_to 'download', t('exports.csv'), settings_exports_blocks_path(format: :csv)
     %tr
       %th= t('exports.mutes')
-      %td= @total_mutes
+      %td= @export.total_mutes
       %td= table_link_to 'download', t('exports.csv'), settings_exports_mutes_path(format: :csv)