Don't we need to take the table out?  Perhaps this should be a <ul> and switch the div in _list_files.html.erb to <li>