From ff90c87c878b03e7beabac5f19396e0db2c25a1e Mon Sep 17 00:00:00 2001 From: "Panagiotis \"Ivory\" Vasilopoulos" Date: Thu, 22 Jun 2023 08:58:16 +0000 Subject: [PATCH] Improve 'Privacy' section in profile settings (#25309) - Improve "Hide the activity from the profile page" label - E-Mail privacy icon in user profile now redirects to Privacy section - E-Mail privacy settings moved to Privacy section Previously, the user was redirected to the setting itself, however, that is not a good design choice because the setting itself would be at the very top of the user's browser window. This fix doesn't fix the problem entirely, but it is definitely an improvement compared to its previous iteration. --- options/locale/locale_en-US.ini | 2 +- templates/user/profile.tmpl | 2 +- templates/user/settings/profile.tmpl | 15 ++++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 70802fc4c..7845b1d52 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -662,7 +662,7 @@ comment_type_group_project = Project comment_type_group_issue_ref = Issue reference saved_successfully = Your settings were saved successfully. privacy = Privacy -keep_activity_private = Hide the activity from the profile page +keep_activity_private = Hide Activity from profile page keep_activity_private_popup = Makes the activity visible only for you and the admins lookup_avatar_by_mail = Look Up Avatar by Email Address diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 51d4a46a9..7c37de2bc 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -35,7 +35,7 @@
  • {{svg "octicon-mail"}} {{.ContextUser.Email}} - + {{if .ShowUserEmail}} {{svg "octicon-unlock"}} diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index 350f8a027..385a2ea20 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -25,12 +25,6 @@

    {{.SignedUser.Email}}

    -
    -
    - - -
    -
    @@ -47,7 +41,7 @@
    -
    +
    @@ -77,6 +71,13 @@
    +
    +
    + + +
    +
    +