From 843642aba2a47150ee02037004c4b16883284392 Mon Sep 17 00:00:00 2001 From: Audrey Hamelers Date: Mon, 7 Oct 2024 15:34:32 +0200 Subject: [PATCH] fix versions and share downloads --- app/views/stash_datacite/resources/_show.html.erb | 2 +- app/views/stash_engine/downloads/_download.html.erb | 4 +++- app/views/stash_engine/downloads/share.html.erb | 2 +- app/views/stash_engine/landing/_files.html.erb | 12 +++++++----- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/views/stash_datacite/resources/_show.html.erb b/app/views/stash_datacite/resources/_show.html.erb index 722a57394..ab087751f 100644 --- a/app/views/stash_datacite/resources/_show.html.erb +++ b/app/views/stash_datacite/resources/_show.html.erb @@ -5,7 +5,7 @@ <% if @id.may_download?(user: current_user) %> - <%= render partial: 'stash_engine/landing/files', locals: {dataset_identifier: @id} %> + <%= render partial: 'stash_engine/landing/files', locals: {dataset_identifier: @id, share: nil} %> <% else %> <%= render partial: 'stash_engine/landing/files_embargoed', locals: {resource: @resource} %> <% end %> diff --git a/app/views/stash_engine/downloads/_download.html.erb b/app/views/stash_engine/downloads/_download.html.erb index ac0b7cf58..43d17db48 100644 --- a/app/views/stash_engine/downloads/_download.html.erb +++ b/app/views/stash_engine/downloads/_download.html.erb @@ -12,10 +12,12 @@
<% content_for :doc_end do %> + <% params = {resource_id: @resource.id} %> + <% params[:share] = share if share.present? %>