Skip to content

Commit 6d94812

Browse files
committed
REW-2045 - switch round if statement logic
1 parent e403294 commit 6d94812

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/views/csv2db/_csv_import_table.html.haml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
%tr
1616
%td= import.id
1717
%td= import.created_at
18-
- if Csv2db.config.storage_adapter.dragonfly?
19-
%td= link_to import.file.name, import.file.url, target: '_blank'
20-
- else
18+
- if Csv2db.config.storage_adapter.active_storage?
2119
%td= link_to import.file_name, import.expiring_link
20+
- else
21+
%td= link_to import.file.name, import.file.url, target: '_blank'
2222
%td
2323
.badge{ class: "badge-upload-#{import.status}" }= import.status
2424
%td

0 commit comments

Comments
 (0)