Add social graph field to privacy settings view

This commit is contained in:
Andreas Nedbal 2022-11-15 21:34:45 +01:00 committed by Andreas Nedbal
parent 0b499138e0
commit 9249ef976b
3 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,8 @@ class Settings::PrivacyController < ApplicationController
:privacy_allow_public_timeline, :privacy_allow_public_timeline,
:privacy_allow_stranger_answers, :privacy_allow_stranger_answers,
:privacy_show_in_search, :privacy_show_in_search,
:privacy_require_user) :privacy_require_user,
:privacy_hide_social_graph)
if current_user.update(user_attributes) if current_user.update(user_attributes)
flash[:success] = t(".success") flash[:success] = t(".success")
else else

View File

@ -6,6 +6,7 @@
= f.check_box :privacy_require_user = f.check_box :privacy_require_user
= f.check_box :privacy_allow_public_timeline = f.check_box :privacy_allow_public_timeline
= f.check_box :privacy_allow_stranger_answers = f.check_box :privacy_allow_stranger_answers
= f.check_box :privacy_hide_social_graph
= f.primary = f.primary

View File

@ -72,6 +72,7 @@ en:
privacy_require_user: "Require users to be logged in to ask you questions" privacy_require_user: "Require users to be logged in to ask you questions"
privacy_allow_public_timeline: "Show your answers in the public timeline" privacy_allow_public_timeline: "Show your answers in the public timeline"
privacy_allow_stranger_answers: "Allow other people to answer your questions" privacy_allow_stranger_answers: "Allow other people to answer your questions"
privacy_hide_social_graph: "Hide your social graph"
profile_picture: "Profile picture" profile_picture: "Profile picture"
profile_header: "Profile header" profile_header: "Profile header"
sign_in_count: "Sign in count" sign_in_count: "Sign in count"