about summary refs log tree commit diff
path: root/app/views/settings/exports
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-03-19 20:29:41 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-03-19 20:29:41 +0100
commit56d998cbdbf9743ced5a77895b902ccf33b36332 (patch)
tree616546158b2c7098b28efc3ffc7c4e6435bf71a0 /app/views/settings/exports
parent08b96f1b9f419ab250f24f3828db28a247ef11ac (diff)
Export follow/block lists as CSV
Diffstat (limited to 'app/views/settings/exports')
-rw-r--r--app/views/settings/exports/show.html.haml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/settings/exports/show.html.haml b/app/views/settings/exports/show.html.haml
index d9006efdb..0a0ff8633 100644
--- a/app/views/settings/exports/show.html.haml
+++ b/app/views/settings/exports/show.html.haml
@@ -1,2 +1,17 @@
 - 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'), follows_settings_export_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)