<!DOCTYPE html>
<html>
-<% coll_name = (@object.name =~ /\S/) ? @object.name : "Collection #{@object.uuid}" %>
+<% coll_name = "Collection #{@object.uuid}" %>
<% link_opts = {controller: 'collections', action: 'show_file',
uuid: @object.uuid, reader_token: params[:reader_token]} %>
<head>
the entire collection with wget, try:</p>
<pre>$ wget --mirror --no-parent --no-host --cut-dirs=3 <%=
- url_for(link_opts.merge(action: 'show_file_links', only_path: false))
+ url_for(link_opts.merge(action: 'show_file_links', only_path: false,
+ trailing_slash: true))
%></pre>
<h2>File Listing</h2>
<ul class="collection_files">
<% else %>
<%= link_to(filename,
- {controller: 'collections', action: 'show_file',
- uuid: @object.uuid, file: file_path,
- reader_token: params[:reader_token]},
+ link_opts.merge(file: file_path),
{title: "Download #{file_path}"}) %>
</li>
<% end %>