Skip to content

Commit 5463e17

Browse files
authored
fix: use both archived statuses in manage UI (#18075)
1 parent 1dbcb8e commit 5463e17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

warehouse/templates/manage/project/settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ <h2>{% trans %}Archive project{% endtrans %}</h2>
365365
{% endtrans %}
366366
</p>
367367
</div>
368-
{% if project.lifecycle_status == "archived" %}
368+
{% if project.lifecycle_status in ["archived", "archived-noindex"] %}
369369
<a href="#unarchive-project" class="button button--primary">
370370
{% trans %}Unarchive project{% endtrans %}
371371
</a>

warehouse/templates/manage/projects.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <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" %}
81+
{% if project.lifecycle_status in ["archived", "archived-noindex"] %}
8282
<a href="{{ request.route_path('manage.project.settings', project_name=project.normalized_name) }}" class="badge badge--warning">{% trans %}Archived{% endtrans %}</a>
8383
{% endif %}
8484
</h3>

0 commit comments

Comments
 (0)