html/partials/unmanaged_files.html.haml in machinery-tool-1.16.4 vs html/partials/unmanaged_files.html.haml in machinery-tool-1.17.0
- old
+ new
@@ -1,10 +1,10 @@
- if unmanaged_files
%div
%a.scope_anchor{ id: "unmanaged_files" }
.scope#unmanaged_files_container{ "data-scope" => "unmanaged_files" }
- - count = unmanaged_files.files.length
+ - count = unmanaged_files.length
= render_partial "scope_header",
:scope => "unmanaged_files",
:title => "Unmanaged Files",
:count => "#{count} #{Machinery.pluralize(count, "file")}"
.row.scope_content.collapse.in
@@ -17,10 +17,10 @@
%thead
%tr
%th Name
%th.medium Type
%tbody
- - unmanaged_files.files.each do |file|
+ - unmanaged_files.each do |file|
%tr
%td
- if file.on_disk?
%a.file-download{ href: "#" }
= file.name