From d974ff57e12228ca9e707c99c9be5191f75df6e2 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Tue, 28 Jan 2020 15:01:20 +0100 Subject: [PATCH] Fix attachments sorting --- app/views/steps/attachments/_item.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/steps/attachments/_item.html.erb b/app/views/steps/attachments/_item.html.erb index 12baf425d..2fcbc4785 100644 --- a/app/views/steps/attachments/_item.html.erb +++ b/app/views/steps/attachments/_item.html.erb @@ -1,5 +1,5 @@ -
+
<%= link_to rails_blob_path(asset.file, disposition: 'attachment'), class: 'file-preview-link', id: "modal_link#{asset.id}", @@ -8,8 +8,8 @@ 'preview-url': asset_file_preview_path(asset), 'order-atoz': order_atoz, 'order-ztoa': order_ztoa, - 'order-old': i, - 'order-new': assets_count - i, + 'order-new': i, + 'order-old': assets_count - i, } do %> <%= render partial: 'shared/asset_placeholder.html.erb', locals: { edit_page: false, asset: asset } %>