Skip to content

Commit f46ff91

Browse files
authored
Update archived banner (pypi#17888)
* Update archived banner to include archived-noindex * Update archive modal description * Update translations
1 parent 0f808ae commit f46ff91

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

warehouse/locale/messages.pot

+6-2
Original file line numberDiff line numberDiff line change
@@ -7020,11 +7020,15 @@ msgid "Unarchive project"
70207020
msgstr ""
70217021

70227022
#: warehouse/templates/manage/project/settings.html:375
7023-
msgid "Unarchiving a project will allow new file uploads."
7023+
msgid ""
7024+
"Unarchiving a project will allow new file uploads and add the project to "
7025+
"the search index."
70247026
msgstr ""
70257027

70267028
#: warehouse/templates/manage/project/settings.html:384
7027-
msgid "Archiving a project will block any new file uploads."
7029+
msgid ""
7030+
"Archiving a project will block any new file uploads and remove the "
7031+
"project from the search index."
70287032
msgstr ""
70297033

70307034
#: warehouse/templates/manage/project/settings.html:391

warehouse/templates/manage/project/manage_project_base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
{% endtrans %}
8282
</p>
8383
</div>
84-
{% elif project.lifecycle_status == "archived" %}
84+
{% elif project.lifecycle_status in ["archived", "archived-noindex"] %}
8585
<div class="callout-block callout-block--warning">
8686
<p>{% trans %}This project has been archived.{% endtrans %}</p>
8787
</div>

warehouse/templates/manage/project/settings.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ <h2>{% trans %}Archive project{% endtrans %}</h2>
372372
{% set action = request.route_path('manage.project.unarchive', project_name=project.name) %}
373373
{% set slug = "unarchive-project" %}
374374
{% set title = gettext("Unarchive project") %}
375-
{% set extra_description = gettext("Unarchiving a project will allow new file uploads.") %}
375+
{% set extra_description = gettext("Unarchiving a project will allow new file uploads and add the project to the search index.") %}
376376
{{ confirm_modal(title=title, label=project.name, slug=slug, extra_description=extra_description, action=action, warning=False) }}
377377
{% else %}
378378
<a href="#archive-project" class="button button--primary {{ 'button--disabled' if project.lifecycle_status == 'quarantine' }}">
@@ -381,7 +381,7 @@ <h2>{% trans %}Archive project{% endtrans %}</h2>
381381
{% set action = request.route_path('manage.project.archive', project_name=project.name) %}
382382
{% set slug = "archive-project" %}
383383
{% set title = gettext("Archive project") %}
384-
{% set extra_description = gettext("Archiving a project will block any new file uploads.") %}
384+
{% set extra_description = gettext("Archiving a project will block any new file uploads and remove the project from the search index.") %}
385385
{{ confirm_modal(title=title, label=project.name, slug=slug, extra_description=extra_description, action=action, warning=False) }}
386386
{% endif %}
387387

warehouse/templates/packaging/detail.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ <h3 class="sidebar-section__title">{% trans %}Navigation{% endtrans %}</h3>
313313
{% endtrans %}
314314
</p>
315315
</div>
316-
{% elif project.lifecycle_status == "archived" %}
316+
{% elif project.lifecycle_status in ["archived", "archived-noindex"] %}
317317
<div class="callout-block callout-block--warning">
318318
<p>{% trans %}This project has been archived.{% endtrans %}</p>
319319
<p>

0 commit comments

Comments
 (0)