diff --git a/app/views/settings/_privacy.haml b/app/views/settings/privacy/edit.haml similarity index 53% rename from app/views/settings/_privacy.haml rename to app/views/settings/privacy/edit.haml index 1c3bb36b..89638800 100644 --- a/app/views/settings/_privacy.haml +++ b/app/views/settings/privacy/edit.haml @@ -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" diff --git a/app/views/tabs/_settings.haml b/app/views/tabs/_settings.haml index 30c6777a..6ed1d2cf 100644 --- a/app/views/tabs/_settings.haml +++ b/app/views/tabs/_settings.haml @@ -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 diff --git a/app/views/user/edit_privacy.haml b/app/views/user/edit_privacy.haml deleted file mode 100644 index a9240a78..00000000 --- a/app/views/user/edit_privacy.haml +++ /dev/null @@ -1,4 +0,0 @@ -= render "settings/privacy" - -- provide(:title, generate_title(t(".title"))) -- parent_layout "user/settings"