Move and combine privacy settings template

This commit is contained in:
Andreas Nedbal 2022-06-28 01:50:53 +02:00 committed by Karina Kwiatek
parent 8cf6be8067
commit 97f28d8309
3 changed files with 5 additions and 6 deletions

View File

@ -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"

View File

@ -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

View File

@ -1,4 +0,0 @@
= render "settings/privacy"
- provide(:title, generate_title(t(".title")))
- parent_layout "user/settings"