2020-04-25 08:04:23 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
|
|
|
%h2 Export your data
|
|
|
|
%p
|
2020-05-06 05:23:11 -07:00
|
|
|
The data is inside a
|
2020-05-10 01:40:48 -07:00
|
|
|
%code= '.tar.gz'
|
2020-04-25 08:04:23 -07:00
|
|
|
archive and available in three formats: YAML, JSON, and XML. The archive also contains a copy of your
|
|
|
|
profile picture and header picture in all sizes.
|
|
|
|
%p
|
|
|
|
Please note that you can only export your data once a week. Exporting your data
|
|
|
|
will take a while, so please be patient. You will receive a question once exporting
|
|
|
|
is done.
|
|
|
|
- if current_user.can_export?
|
2020-05-10 01:40:48 -07:00
|
|
|
%form{ action: begin_user_export_path, method: 'POST' }
|
2020-04-26 16:31:43 -07:00
|
|
|
%p.text-center
|
2020-05-10 01:40:48 -07:00
|
|
|
%button.btn.btn-lg.btn-primary#export-btn{ type: :submit } Export
|
2020-04-25 08:04:23 -07:00
|
|
|
= hidden_field_tag :authenticity_token, form_authenticity_token
|
|
|
|
- else
|
2020-04-26 16:31:43 -07:00
|
|
|
%p.text-center
|
2020-05-10 01:40:48 -07:00
|
|
|
%button.btn.btn-lg.btn-primary.disabled{ disabled: :disabled } Export
|
2020-04-25 08:04:23 -07:00
|
|
|
%p
|
|
|
|
- if current_user.export_url.nil?
|
|
|
|
Once exporting your account is done, a download link will appear here.
|
|
|
|
- else
|
|
|
|
Here is your export from
|
|
|
|
= succeed ':' do
|
|
|
|
= current_user.export_created_at
|
2020-05-10 01:40:48 -07:00
|
|
|
%a{ href: current_user.export_url }
|
|
|
|
= File.basename current_user.export_url
|