From 54304cf3e0e1fc9bd12c07b9c08dd5e982da5c88 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 22 Jul 2021 11:50:39 +0100 Subject: [PATCH] Add Create Package button to profile page --- app/templates/users/profile.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/app/templates/users/profile.html b/app/templates/users/profile.html index 8478c0b7..53d3040d 100644 --- a/app/templates/users/profile.html +++ b/app/templates/users/profile.html @@ -119,14 +119,19 @@ {% endif %} - -{% if current_user == user or (current_user.is_authenticated and current_user.rank.atLeast(current_user.rank.EDITOR)) %} - - View list of tags - +{% if user.checkPerm(current_user, "CHANGE_AUTHOR") %} + + + Create package + +{% endif %} +{% if current_user == user or (current_user.is_authenticated and current_user.rank.atLeast(current_user.rank.EDITOR)) %} + + View list of tags + {% endif %} -

{{ _("Packages") }}

{% from "macros/packagegridtile.html" import render_pkggrid %}