Skip to content

Commit 5ae94d8

Browse files
authored
Add archived badges to project's settings page (#17438)
1 parent 0c883bb commit 5ae94d8

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

warehouse/locale/messages.pot

+19-14
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ msgstr ""
17051705
#: warehouse/templates/accounts/profile.html:83
17061706
#: warehouse/templates/manage/organization/projects.html:48
17071707
#: warehouse/templates/manage/projects.html:37
1708-
#: warehouse/templates/manage/projects.html:84
1708+
#: warehouse/templates/manage/projects.html:87
17091709
#: warehouse/templates/manage/team/projects.html:48
17101710
#: warehouse/templates/organizations/profile.html:66
17111711
#, python-format
@@ -3899,8 +3899,8 @@ msgstr ""
38993899
#: warehouse/templates/manage/organizations.html:120
39003900
#: warehouse/templates/manage/organizations.html:125
39013901
#: warehouse/templates/manage/project/releases.html:88
3902-
#: warehouse/templates/manage/projects.html:103
3903-
#: warehouse/templates/manage/projects.html:107
3902+
#: warehouse/templates/manage/projects.html:106
3903+
#: warehouse/templates/manage/projects.html:110
39043904
#: warehouse/templates/manage/team/projects.html:66
39053905
#: warehouse/templates/manage/team/projects.html:70
39063906
msgid "Manage"
@@ -4209,7 +4209,7 @@ msgstr ""
42094209
#: warehouse/templates/manage/organizations.html:35
42104210
#: warehouse/templates/manage/organizations.html:96
42114211
#: warehouse/templates/manage/projects.html:44
4212-
#: warehouse/templates/manage/projects.html:91
4212+
#: warehouse/templates/manage/projects.html:94
42134213
#: warehouse/templates/manage/team/projects.html:55
42144214
#, python-format
42154215
msgid "Created %(creation_date)s"
@@ -4302,8 +4302,8 @@ msgstr ""
43024302
#: warehouse/templates/manage/organization/teams.html:63
43034303
#: warehouse/templates/manage/organizations.html:103
43044304
#: warehouse/templates/manage/project/releases.html:94
4305-
#: warehouse/templates/manage/projects.html:115
43064305
#: warehouse/templates/manage/projects.html:118
4306+
#: warehouse/templates/manage/projects.html:121
43074307
#: warehouse/templates/manage/team/projects.html:78
43084308
#: warehouse/templates/manage/team/projects.html:81
43094309
msgid "View"
@@ -4442,31 +4442,35 @@ msgstr ""
44424442
msgid "Sole owner"
44434443
msgstr ""
44444444

4445+
#: warehouse/templates/manage/projects.html:82
4446+
msgid "Archived"
4447+
msgstr ""
4448+
44454449
#: warehouse/templates/manage/organization/projects.html:66
4446-
#: warehouse/templates/manage/projects.html:102
4450+
#: warehouse/templates/manage/projects.html:105
44474451
#: warehouse/templates/manage/team/projects.html:65
44484452
msgid "Manage this project"
44494453
msgstr ""
44504454

44514455
#: warehouse/templates/manage/organization/projects.html:70
4452-
#: warehouse/templates/manage/projects.html:106
4456+
#: warehouse/templates/manage/projects.html:109
44534457
#: warehouse/templates/manage/team/projects.html:69
44544458
msgid "You are not an owner of this project"
44554459
msgstr ""
44564460

44574461
#: warehouse/templates/manage/organization/projects.html:78
4458-
#: warehouse/templates/manage/projects.html:114
4462+
#: warehouse/templates/manage/projects.html:117
44594463
#: warehouse/templates/manage/team/projects.html:77
44604464
msgid "View this project's public page"
44614465
msgstr ""
44624466

44634467
#: warehouse/templates/manage/organization/projects.html:81
4464-
#: warehouse/templates/manage/projects.html:117
4468+
#: warehouse/templates/manage/projects.html:120
44654469
#: warehouse/templates/manage/team/projects.html:80
44664470
msgid "This project has no releases"
44674471
msgstr ""
44684472

4469-
#: warehouse/templates/manage/projects.html:126
4473+
#: warehouse/templates/manage/projects.html:129
44704474
#, python-format
44714475
msgid ""
44724476
"You have not uploaded any projects to PyPI, yet. To learn how to get "
@@ -6113,6 +6117,11 @@ msgid ""
61136117
"article."
61146118
msgstr ""
61156119

6120+
#: warehouse/templates/manage/project/manage_project_base.html:86
6121+
#: warehouse/templates/packaging/detail.html:318
6122+
msgid "This project has been archived."
6123+
msgstr ""
6124+
61166125
#: warehouse/templates/manage/project/publishing.html:26
61176126
msgid ""
61186127
"Some form fields have been autofilled, please double-check their values "
@@ -7119,10 +7128,6 @@ msgstr ""
71197128
msgid "Project details"
71207129
msgstr ""
71217130

7122-
#: warehouse/templates/packaging/detail.html:318
7123-
msgid "This project has been archived."
7124-
msgstr ""
7125-
71267131
#: warehouse/templates/packaging/detail.html:320
71277132
msgid ""
71287133
"The maintainers of this project have marked this project as archived. No "

warehouse/templates/manage/project/manage_project_base.html

+4
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
{% endtrans %}
8282
</p>
8383
</div>
84+
{% elif project.lifecycle_status == "archived" %}
85+
<div class="callout-block callout-block--warning">
86+
<p>{% trans %}This project has been archived.{% endtrans %}</p>
87+
</div>
8488
{% endif %}
8589
{% if request.organization_access and project.organization %}
8690
<div class="organization-snippet organization-snippet--margin-bottom">

warehouse/templates/manage/projects.html

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ <h3 class="package-snippet__title">{{ project.name }}
7878
{% if project.name in projects_sole_owned %}
7979
<a href="{{ request.route_path('manage.project.roles', project_name=project.normalized_name) }}" class="badge badge--warning">{% trans %}Sole owner{% endtrans %}</a>
8080
{% endif %}
81+
{% if project.lifecycle_status == "archived" %}
82+
<a href="{{ request.route_path('manage.project.settings', project_name=project.normalized_name) }}" class="badge badge--warning">{% trans %}Archived{% endtrans %}</a>
83+
{% endif %}
8184
</h3>
8285
{% if release %}
8386
<p class="package-snippet__meta">

0 commit comments

Comments
 (0)