From 9cf15ed031f379e83464c7d15c1f7da4679aeb11 Mon Sep 17 00:00:00 2001 From: klpoland Date: Fri, 29 May 2026 12:50:28 -0400 Subject: [PATCH 1/3] remove unused logic (expand later) --- .../sds_gateway/templates/users/files.html | 87 +++---------------- 1 file changed, 13 insertions(+), 74 deletions(-) diff --git a/gateway/sds_gateway/templates/users/files.html b/gateway/sds_gateway/templates/users/files.html index 727484c0..c1ea82f6 100644 --- a/gateway/sds_gateway/templates/users/files.html +++ b/gateway/sds_gateway/templates/users/files.html @@ -131,10 +131,7 @@

Files

{% if item.shared_by %}{{ item.shared_by }}{% endif %}
- {% if item.type == 'file' and item.is_h5_file %} - - {% else %} - + {% if item.type == 'file' and not item.is_h5_file %} {% endif %} @@ -395,7 +330,11 @@ // Permissions for ShareActionManager on per-capture share modals (files browser) window.filesSharePagePermissions = { userPermissionLevel: "owner", - currentUserId: {{ request.user.id }}, + currentUserId: { + { + request.user.id + } + }, isOwner: true, datasetPermissions: { canEditMetadata: true, From 1ee014d7f8c737c98f35da00d2367a6f23eca65e Mon Sep 17 00:00:00 2001 From: klpoland Date: Fri, 29 May 2026 12:54:57 -0400 Subject: [PATCH 2/3] fix djlint --- gateway/sds_gateway/templates/users/files.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gateway/sds_gateway/templates/users/files.html b/gateway/sds_gateway/templates/users/files.html index c1ea82f6..0ed9b720 100644 --- a/gateway/sds_gateway/templates/users/files.html +++ b/gateway/sds_gateway/templates/users/files.html @@ -326,15 +326,12 @@ + {# djlint:off #} + + {# djlint:on #}