From 7dbea9f042f1130de351b314b266b9c9b960f26e Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 8 May 2021 00:30:57 +0100 Subject: [PATCH] Fix crash on packages with no releases --- app/templates/packages/view.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 054c2ae6..6acee386 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -93,11 +93,13 @@ {{ package.author.display_name }} - - - {{ package.downloads }} - + {% if release %} + + + {{ package.downloads }} + + {% endif %} {{ threads | length }}