2020-04-25 17:04:23 +02:00
|
|
|
.card
|
|
|
|
.card-body
|
2022-02-13 02:26:15 +01:00
|
|
|
%h2= t(".heading")
|
|
|
|
= t(".body_html")
|
|
|
|
|
2020-04-25 17:04:23 +02:00
|
|
|
- if current_user.can_export?
|
2022-07-02 06:15:50 +02:00
|
|
|
%form{ action: settings_export_path, method: :post }
|
2020-04-27 01:31:43 +02:00
|
|
|
%p.text-center
|
2022-02-13 02:26:15 +01:00
|
|
|
%button.btn.btn-lg.btn-primary#export-btn{ type: :submit }= t(".export")
|
2020-04-25 17:04:23 +02:00
|
|
|
= hidden_field_tag :authenticity_token, form_authenticity_token
|
|
|
|
- else
|
2020-04-27 01:31:43 +02:00
|
|
|
%p.text-center
|
2022-02-13 02:26:15 +01:00
|
|
|
%button.btn.btn-lg.btn-primary.disabled{ disabled: :disabled }= t(".export")
|
2020-04-25 17:04:23 +02:00
|
|
|
%p
|
|
|
|
- if current_user.export_url.nil?
|
2022-02-13 02:26:15 +01:00
|
|
|
= t(".export_url.none")
|
2020-04-25 17:04:23 +02:00
|
|
|
- else
|
2022-02-13 02:26:15 +01:00
|
|
|
= t(".export_url.present", time: current_user.export_created_at)
|
2020-05-10 10:40:48 +02:00
|
|
|
%a{ href: current_user.export_url }
|
|
|
|
= File.basename current_user.export_url
|
2022-07-02 06:15:50 +02:00
|
|
|
|
|
|
|
- provide(:title, generate_title(t(".title")))
|
|
|
|
- parent_layout "user/settings"
|