Move and combine privacy settings template
This commit is contained in:
parent
8cf6be8067
commit
97f28d8309
|
@ -1,8 +1,11 @@
|
|||
.card
|
||||
.card-body
|
||||
= bootstrap_form_for(current_user, url: { action: "edit_privacy" }, method: :patch) do |f|
|
||||
= bootstrap_form_for(current_user, url: settings_privacy_path, method: :patch) do |f|
|
||||
= f.check_box :privacy_allow_anonymous_questions
|
||||
= f.check_box :privacy_allow_public_timeline
|
||||
= f.check_box :privacy_allow_stranger_answers
|
||||
|
||||
= f.primary
|
||||
|
||||
- provide(:title, generate_title(t(".title")))
|
||||
- parent_layout "user/settings"
|
|
@ -2,7 +2,7 @@
|
|||
.list-group
|
||||
= list_group_item t(".account"), edit_user_registration_path
|
||||
= list_group_item t(".profile"), settings_profile_path
|
||||
= list_group_item t(".privacy"), edit_user_privacy_path
|
||||
= list_group_item t(".privacy"), settings_privacy_path
|
||||
= list_group_item t(".security"), edit_user_security_path
|
||||
= list_group_item t(".sharing"), services_path
|
||||
= list_group_item t(".mutes"), edit_user_mute_rules_path
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
= render "settings/privacy"
|
||||
|
||||
- provide(:title, generate_title(t(".title")))
|
||||
- parent_layout "user/settings"
|
Loading…
Reference in New Issue