From 6cc02cb94313937866a871c43b2aabbf19d6018a Mon Sep 17 00:00:00 2001 From: Dustin Ingram Date: Tue, 23 Jan 2018 10:22:20 -0600 Subject: [PATCH] Don't show releases link if there are none --- warehouse/templates/manage/settings.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/warehouse/templates/manage/settings.html b/warehouse/templates/manage/settings.html index 43396d246e7f..b5a8016d856e 100644 --- a/warehouse/templates/manage/settings.html +++ b/warehouse/templates/manage/settings.html @@ -22,7 +22,9 @@

Settings

Delete project

-

Deleting will irreversibly delete this project along with +

+ {% if project.releases %} + Deleting will irreversibly delete this project along with {{ project.releases|length() }} {% trans count=project.releases|length %} @@ -31,6 +33,9 @@

Delete project

releases. {% endtrans %} + {% else %} + Deleting will irreversibly delete this project. + {% endif %}

Delete