From 977fc1ce964f3c84c4899ba4a80c16bfc8e62f15 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 7 Nov 2022 01:41:13 +0000 Subject: [PATCH] Move statistics link on package page --- app/templates/packages/view.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 9cea59a2..bcac6f45 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -32,7 +32,7 @@ {% block download_btn %} {% if release %} + href="{{ release.getDownloadURL() }}">
{{ _("Download") }}
@@ -164,7 +164,8 @@
{% if release %} - + {{ package.downloads }} @@ -205,6 +206,10 @@ {{ _("Issue Tracker") }} {% endif %} + + + {{ _("Statistics") }} + @@ -543,19 +548,16 @@

- - - {{ _("Statistics") }} - {% if package.approved and current_user != package.author %} - | {{ _("Report") }} {% endif %} {% if package.checkPerm(current_user, "EDIT_PACKAGE") or package.checkPerm(current_user, "APPROVE_NEW") %} - | + {% if package.approved and current_user != package.author %} + | + {% endif %} {{ _("See audit log") }}