From b174e1d6751d9dd5213ecc9984ab666f3df162cb Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Thu, 12 Jun 2025 11:54:10 -0700 Subject: [PATCH 1/2] allowing users with manage template permission to delete templates --- app/templates/views/templates/template.html | 54 ++++++++++----------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/app/templates/views/templates/template.html b/app/templates/views/templates/template.html index fd954a347..e582cd0ca 100644 --- a/app/templates/views/templates/template.html +++ b/app/templates/views/templates/template.html @@ -56,35 +56,35 @@ {{ template._template.updated_at|format_delta }} +
+ + See previous versions + +
+ {% endif %} + {% if current_user.has_permissions('manage_templates') and user_has_template_permission %}

More actions

{% endif %} From a07aa29c7f5dc6c431150702a2718d87327b1347 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Thu, 12 Jun 2025 15:28:02 -0700 Subject: [PATCH 2/2] again --- app/templates/views/templates/template.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/templates/views/templates/template.html b/app/templates/views/templates/template.html index e582cd0ca..d338d2f6d 100644 --- a/app/templates/views/templates/template.html +++ b/app/templates/views/templates/template.html @@ -58,9 +58,7 @@
- See previous versions - + href="{{ url_for('.view_template_versions', service_id=current_service.id, template_id=template.id) }}">See previous versions
{% endif %} {% if current_user.has_permissions('manage_templates') and user_has_template_permission %}