Skip to content

Commit

Permalink
feat: add notes to registration page (#16765)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Sep 20, 2024
1 parent 362f6b7 commit 30846f6
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 20 deletions.
77 changes: 58 additions & 19 deletions warehouse/locale/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1352,8 +1352,8 @@ msgstr ""
msgid "Error processing form"
msgstr ""

#: warehouse/templates/accounts/register.html:173
#: warehouse/templates/accounts/register.html:179
#: warehouse/templates/accounts/register.html:190
#: warehouse/templates/accounts/register.html:196
#: warehouse/templates/accounts/reset-password.html:71
#: warehouse/templates/accounts/reset-password.html:77
#: warehouse/templates/manage/account.html:442
Expand All @@ -1366,7 +1366,7 @@ msgid "Confirm password to continue"
msgstr ""

#: warehouse/templates/accounts/login.html:77
#: warehouse/templates/accounts/register.html:136
#: warehouse/templates/accounts/register.html:153
#: warehouse/templates/accounts/reset-password.html:38
#: warehouse/templates/manage/manage_base.html:408
#: warehouse/templates/re-auth.html:50
Expand All @@ -1376,11 +1376,11 @@ msgstr ""
#: warehouse/templates/accounts/login.html:51
#: warehouse/templates/accounts/login.html:79
#: warehouse/templates/accounts/recovery-code.html:42
#: warehouse/templates/accounts/register.html:49
#: warehouse/templates/accounts/register.html:75
#: warehouse/templates/accounts/register.html:110
#: warehouse/templates/accounts/register.html:138
#: warehouse/templates/accounts/register.html:175
#: warehouse/templates/accounts/register.html:66
#: warehouse/templates/accounts/register.html:92
#: warehouse/templates/accounts/register.html:127
#: warehouse/templates/accounts/register.html:155
#: warehouse/templates/accounts/register.html:192
#: warehouse/templates/accounts/request-password-reset.html:41
#: warehouse/templates/accounts/reset-password.html:40
#: warehouse/templates/accounts/reset-password.html:73
Expand Down Expand Up @@ -1542,7 +1542,7 @@ msgstr ""

#: warehouse/templates/accounts/login.html:49
#: warehouse/templates/accounts/profile.html:39
#: warehouse/templates/accounts/register.html:108
#: warehouse/templates/accounts/register.html:125
#: warehouse/templates/email/organization-member-added/body.html:30
#: warehouse/templates/email/organization-member-invited/body.html:30
#: warehouse/templates/email/organization-member-removed/body.html:30
Expand Down Expand Up @@ -1696,7 +1696,46 @@ msgstr ""
msgid "Create an account on %(title)s"
msgstr ""

#: warehouse/templates/accounts/register.html:47
#: warehouse/templates/accounts/register.html:35
#, python-format
msgid ""
"Before creating an account on %(title)s, familiarize yourself with the "
"following guidelines:"
msgstr ""

#: warehouse/templates/accounts/register.html:38
#, python-format
msgid "Do not use %(title)s for any illegal or harmful activities."
msgstr ""

#: warehouse/templates/accounts/register.html:39
msgid ""
"Do not impersonate others or post private information without their "
"consent."
msgstr ""

#: warehouse/templates/accounts/register.html:40
msgid "Be respectful of other users and avoid abusive or discriminatory language."
msgstr ""

#: warehouse/templates/accounts/register.html:41
msgid "Do not post spam or distribute malware."
msgstr ""

#: warehouse/templates/accounts/register.html:42
#, python-format
msgid "Do not use %(title)s to conduct security research."
msgstr ""

#: warehouse/templates/accounts/register.html:45
#, python-format
msgid ""
"For more information, please read the full <a href=\"%(tou)s\" "
"rel=\"noopener\">Terms of Use</a> and <a href=\"%(aup)s\" "
"rel=\"noopener\">Acceptable Use Policy</a>."
msgstr ""

#: warehouse/templates/accounts/register.html:64
#: warehouse/templates/manage/account.html:139
#: warehouse/templates/manage/account.html:480
#: warehouse/templates/manage/project/history.html:301
Expand All @@ -1710,47 +1749,47 @@ msgstr ""
msgid "Name"
msgstr ""

#: warehouse/templates/accounts/register.html:53
#: warehouse/templates/accounts/register.html:70
msgid "Your name"
msgstr ""

#: warehouse/templates/accounts/register.html:73
#: warehouse/templates/accounts/register.html:90
#: warehouse/templates/manage/account.html:336
#: warehouse/templates/manage/unverified-account.html:227
msgid "Email address"
msgstr ""

#: warehouse/templates/accounts/register.html:79
#: warehouse/templates/accounts/register.html:96
#: warehouse/templates/manage/account.html:358
msgid "Your email address"
msgstr ""

#: warehouse/templates/accounts/register.html:99
#: warehouse/templates/accounts/register.html:116
msgid "Confirm form"
msgstr ""

#: warehouse/templates/accounts/register.html:113
#: warehouse/templates/accounts/register.html:130
msgid "Select a username"
msgstr ""

#: warehouse/templates/accounts/register.html:143
#: warehouse/templates/accounts/register.html:160
#: warehouse/templates/accounts/reset-password.html:44
#: warehouse/templates/manage/account.html:391
msgid "Show passwords"
msgstr ""

#: warehouse/templates/accounts/register.html:147
#: warehouse/templates/accounts/register.html:164
msgid "Select a password"
msgstr ""

#: warehouse/templates/accounts/register.html:205
#: warehouse/templates/accounts/register.html:222
msgid ""
"This password appears in a security breach or has been compromised and "
"cannot be used. Please refer to the <a href=\"/help/#compromised-"
"password\">FAQ</a> for more information."
msgstr ""

#: warehouse/templates/accounts/register.html:214
#: warehouse/templates/accounts/register.html:231
msgid "Create account"
msgstr ""

Expand Down
19 changes: 18 additions & 1 deletion warehouse/templates/accounts/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,24 @@
<div class="horizontal-section">
<div class="site-container">
<h1 class="page-title">{% trans title=title %}Create an account on {{ title }}{% endtrans %}</h1>

<aside>
<p>
{% trans title=title %}Before creating an account on {{ title }}, familiarize yourself with the following guidelines:{% endtrans %}
</p>
<ul>
<li>{% trans title=title %}Do not use {{ title }} for any illegal or harmful activities.{% endtrans %}</li>
<li>{% trans %}Do not impersonate others or post private information without their consent.{% endtrans %}</li>
<li>{% trans %}Be respectful of other users and avoid abusive or discriminatory language.{% endtrans %}</li>
<li>{% trans %}Do not post spam or distribute malware.{% endtrans %}</li>
<li>{% trans title=title %}Do not use {{ title }} to conduct security research.{% endtrans %}</li>
</ul>
<p>
{% trans tou="https://policies.python.org/pypi.org/Terms-of-Use/", aup="https://policies.python.org/pypi.org/Acceptable-Use-Policy/" %}
For more information, please read the full <a href="{{ tou }}" rel="noopener">Terms of Use</a> and <a href="{{ aup }}" rel="noopener">Acceptable Use Policy</a>.
{% endtrans %}
</p>
</aside>
<hr>
<form method="POST" action="{{ request.current_route_path() }}" data-controller="password password-match password-strength-gauge password-breach">
<input name="csrf_token" type="hidden" value="{{ request.session.get_csrf_token() }}">

Expand Down

0 comments on commit 30846f6

Please sign in to comment.