Skip to content

Commit 31f8880

Browse files
hakitoHakito
and
Hakito
authored
Show placeholder email in privacy popup (#27770)
This PR will show the _noreply_ address in the privacy popup _keep_email_private_popup_. I had to look into the source code to figure out which E-Mail Adress I had to use on gitea.com to hide it from public access. According to the contribution guidelines I only updated the en-US translation file. Co-authored-by: Hakito <[email protected]>
1 parent f39256f commit 31f8880

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

options/locale/locale_en-US.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ add_email_success = The new email address has been added.
729729
email_preference_set_success = Email preference has been set successfully.
730730
add_openid_success = The new OpenID address has been added.
731731
keep_email_private = Hide Email Address
732-
keep_email_private_popup = This will hide your email address from your profile, as well as when you make a pull request or edit a file using the web interface. Pushed commits will not be modified.
732+
keep_email_private_popup = This will hide your email address from your profile, as well as when you make a pull request or edit a file using the web interface. Pushed commits will not be modified. Use %s in commits to associate them with your account.
733733
openid_desc = OpenID lets you delegate authentication to an external provider.
734734

735735
manage_ssh_keys = Manage SSH Keys

templates/user/settings/profile.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
<div class="field">
7575
<div class="ui checkbox">
76-
<label data-tooltip-content="{{ctx.Locale.Tr "settings.keep_email_private_popup"}}"><strong>{{ctx.Locale.Tr "settings.keep_email_private"}}</strong></label>
76+
<label data-tooltip-content="{{ctx.Locale.Tr "settings.keep_email_private_popup" .SignedUser.GetPlaceholderEmail}}"><strong>{{ctx.Locale.Tr "settings.keep_email_private"}}</strong></label>
7777
<input name="keep_email_private" type="checkbox" {{if .SignedUser.KeepEmailPrivate}}checked{{end}}>
7878
</div>
7979
</div>

0 commit comments

Comments
 (0)