3 <% coll_name = (@object.name =~ /\S/) ? @object.name : "Collection #{@object.uuid}" %>
4 <% link_opts = {controller: 'collections', action: 'show_file',
5 uuid: @object.uuid, reader_token: params[:reader_token]} %>
9 <%= coll_name %> / <%= Rails.configuration.site_name %>
11 <meta name="description" content="">
12 <meta name="author" content="">
13 <meta name="robots" content="NOINDEX">
14 <style type="text/css">
19 background-color: #D9EDF7;
34 <h1><%= coll_name %></h1>
36 <p>This collection of data files is being shared with you through
37 Arvados. You can download individual files listed below. To download
38 the entire collection with wget, try:</p>
40 <pre>$ wget --mirror --no-parent --no-host --cut-dirs=3 <%=
41 url_for(link_opts.merge(action: 'show_file_links', only_path: false))
46 <% if @object.andand.files_tree.andand.any? %>
47 <ul id="collection_files" class="collection_files">
48 <% dirstack = [@object.files_tree.first.first] %>
49 <% @object.files_tree.each_with_index do |(dirname, filename, size), index| %>
50 <% file_path = CollectionsHelper::file_path([dirname, filename]) %>
51 <% while dirstack.any? and (dirstack.last != dirname) %>
52 <% dirstack.pop %></ul></li>
55 <% if size.nil? # This is a subdirectory. %>
56 <% dirstack.push(File.join(dirname, filename)) %>
58 <ul class="collection_files">
61 {controller: 'collections', action: 'show_file',
62 uuid: @object.uuid, file: file_path,
63 reader_token: params[:reader_token]},
64 {title: "Download #{file_path}"}) %>
68 <%= raw(dirstack.map { |_| "</ul>" }.join("</li>")) %>
70 <p>No files in this collection.</p>
74 <h2>About Arvados</h2>
76 <p>Arvados is a free and open source software bioinformatics platform.
77 To learn more, visit arvados.org.
78 Arvados is not responsible for the files listed on this page.</p>