Skip to content

Commit 30846f6

Browse files
authored
feat: add notes to registration page (#16765)
1 parent 362f6b7 commit 30846f6

File tree

2 files changed

+76
-20
lines changed

2 files changed

+76
-20
lines changed

warehouse/locale/messages.pot

Lines changed: 58 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,8 +1352,8 @@ msgstr ""
13521352
msgid "Error processing form"
13531353
msgstr ""
13541354

1355-
#: warehouse/templates/accounts/register.html:173
1356-
#: warehouse/templates/accounts/register.html:179
1355+
#: warehouse/templates/accounts/register.html:190
1356+
#: warehouse/templates/accounts/register.html:196
13571357
#: warehouse/templates/accounts/reset-password.html:71
13581358
#: warehouse/templates/accounts/reset-password.html:77
13591359
#: warehouse/templates/manage/account.html:442
@@ -1366,7 +1366,7 @@ msgid "Confirm password to continue"
13661366
msgstr ""
13671367

13681368
#: warehouse/templates/accounts/login.html:77
1369-
#: warehouse/templates/accounts/register.html:136
1369+
#: warehouse/templates/accounts/register.html:153
13701370
#: warehouse/templates/accounts/reset-password.html:38
13711371
#: warehouse/templates/manage/manage_base.html:408
13721372
#: warehouse/templates/re-auth.html:50
@@ -1376,11 +1376,11 @@ msgstr ""
13761376
#: warehouse/templates/accounts/login.html:51
13771377
#: warehouse/templates/accounts/login.html:79
13781378
#: warehouse/templates/accounts/recovery-code.html:42
1379-
#: warehouse/templates/accounts/register.html:49
1380-
#: warehouse/templates/accounts/register.html:75
1381-
#: warehouse/templates/accounts/register.html:110
1382-
#: warehouse/templates/accounts/register.html:138
1383-
#: warehouse/templates/accounts/register.html:175
1379+
#: warehouse/templates/accounts/register.html:66
1380+
#: warehouse/templates/accounts/register.html:92
1381+
#: warehouse/templates/accounts/register.html:127
1382+
#: warehouse/templates/accounts/register.html:155
1383+
#: warehouse/templates/accounts/register.html:192
13841384
#: warehouse/templates/accounts/request-password-reset.html:41
13851385
#: warehouse/templates/accounts/reset-password.html:40
13861386
#: warehouse/templates/accounts/reset-password.html:73
@@ -1542,7 +1542,7 @@ msgstr ""
15421542

15431543
#: warehouse/templates/accounts/login.html:49
15441544
#: warehouse/templates/accounts/profile.html:39
1545-
#: warehouse/templates/accounts/register.html:108
1545+
#: warehouse/templates/accounts/register.html:125
15461546
#: warehouse/templates/email/organization-member-added/body.html:30
15471547
#: warehouse/templates/email/organization-member-invited/body.html:30
15481548
#: warehouse/templates/email/organization-member-removed/body.html:30
@@ -1696,7 +1696,46 @@ msgstr ""
16961696
msgid "Create an account on %(title)s"
16971697
msgstr ""
16981698

1699-
#: warehouse/templates/accounts/register.html:47
1699+
#: warehouse/templates/accounts/register.html:35
1700+
#, python-format
1701+
msgid ""
1702+
"Before creating an account on %(title)s, familiarize yourself with the "
1703+
"following guidelines:"
1704+
msgstr ""
1705+
1706+
#: warehouse/templates/accounts/register.html:38
1707+
#, python-format
1708+
msgid "Do not use %(title)s for any illegal or harmful activities."
1709+
msgstr ""
1710+
1711+
#: warehouse/templates/accounts/register.html:39
1712+
msgid ""
1713+
"Do not impersonate others or post private information without their "
1714+
"consent."
1715+
msgstr ""
1716+
1717+
#: warehouse/templates/accounts/register.html:40
1718+
msgid "Be respectful of other users and avoid abusive or discriminatory language."
1719+
msgstr ""
1720+
1721+
#: warehouse/templates/accounts/register.html:41
1722+
msgid "Do not post spam or distribute malware."
1723+
msgstr ""
1724+
1725+
#: warehouse/templates/accounts/register.html:42
1726+
#, python-format
1727+
msgid "Do not use %(title)s to conduct security research."
1728+
msgstr ""
1729+
1730+
#: warehouse/templates/accounts/register.html:45
1731+
#, python-format
1732+
msgid ""
1733+
"For more information, please read the full <a href=\"%(tou)s\" "
1734+
"rel=\"noopener\">Terms of Use</a> and <a href=\"%(aup)s\" "
1735+
"rel=\"noopener\">Acceptable Use Policy</a>."
1736+
msgstr ""
1737+
1738+
#: warehouse/templates/accounts/register.html:64
17001739
#: warehouse/templates/manage/account.html:139
17011740
#: warehouse/templates/manage/account.html:480
17021741
#: warehouse/templates/manage/project/history.html:301
@@ -1710,47 +1749,47 @@ msgstr ""
17101749
msgid "Name"
17111750
msgstr ""
17121751

1713-
#: warehouse/templates/accounts/register.html:53
1752+
#: warehouse/templates/accounts/register.html:70
17141753
msgid "Your name"
17151754
msgstr ""
17161755

1717-
#: warehouse/templates/accounts/register.html:73
1756+
#: warehouse/templates/accounts/register.html:90
17181757
#: warehouse/templates/manage/account.html:336
17191758
#: warehouse/templates/manage/unverified-account.html:227
17201759
msgid "Email address"
17211760
msgstr ""
17221761

1723-
#: warehouse/templates/accounts/register.html:79
1762+
#: warehouse/templates/accounts/register.html:96
17241763
#: warehouse/templates/manage/account.html:358
17251764
msgid "Your email address"
17261765
msgstr ""
17271766

1728-
#: warehouse/templates/accounts/register.html:99
1767+
#: warehouse/templates/accounts/register.html:116
17291768
msgid "Confirm form"
17301769
msgstr ""
17311770

1732-
#: warehouse/templates/accounts/register.html:113
1771+
#: warehouse/templates/accounts/register.html:130
17331772
msgid "Select a username"
17341773
msgstr ""
17351774

1736-
#: warehouse/templates/accounts/register.html:143
1775+
#: warehouse/templates/accounts/register.html:160
17371776
#: warehouse/templates/accounts/reset-password.html:44
17381777
#: warehouse/templates/manage/account.html:391
17391778
msgid "Show passwords"
17401779
msgstr ""
17411780

1742-
#: warehouse/templates/accounts/register.html:147
1781+
#: warehouse/templates/accounts/register.html:164
17431782
msgid "Select a password"
17441783
msgstr ""
17451784

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

1753-
#: warehouse/templates/accounts/register.html:214
1792+
#: warehouse/templates/accounts/register.html:231
17541793
msgid "Create account"
17551794
msgstr ""
17561795

warehouse/templates/accounts/register.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,24 @@
3030
<div class="horizontal-section">
3131
<div class="site-container">
3232
<h1 class="page-title">{% trans title=title %}Create an account on {{ title }}{% endtrans %}</h1>
33-
33+
<aside>
34+
<p>
35+
{% trans title=title %}Before creating an account on {{ title }}, familiarize yourself with the following guidelines:{% endtrans %}
36+
</p>
37+
<ul>
38+
<li>{% trans title=title %}Do not use {{ title }} for any illegal or harmful activities.{% endtrans %}</li>
39+
<li>{% trans %}Do not impersonate others or post private information without their consent.{% endtrans %}</li>
40+
<li>{% trans %}Be respectful of other users and avoid abusive or discriminatory language.{% endtrans %}</li>
41+
<li>{% trans %}Do not post spam or distribute malware.{% endtrans %}</li>
42+
<li>{% trans title=title %}Do not use {{ title }} to conduct security research.{% endtrans %}</li>
43+
</ul>
44+
<p>
45+
{% trans tou="https://policies.python.org/pypi.org/Terms-of-Use/", aup="https://policies.python.org/pypi.org/Acceptable-Use-Policy/" %}
46+
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>.
47+
{% endtrans %}
48+
</p>
49+
</aside>
50+
<hr>
3451
<form method="POST" action="{{ request.current_route_path() }}" data-controller="password password-match password-strength-gauge password-breach">
3552
<input name="csrf_token" type="hidden" value="{{ request.session.get_csrf_token() }}">
3653

0 commit comments

Comments
 (0)