3 <% coll_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,
42 trailing_slash: true))
47 <% if @object.andand.files_tree.andand.any? %>
48 <ul id="collection_files" class="collection_files">
49 <% dirstack = [@object.files_tree.first.first] %>
50 <% @object.files_tree.each_with_index do |(dirname, filename, size), index| %>
51 <% file_path = CollectionsHelper::file_path([dirname, filename]) %>
52 <% while dirstack.any? and (dirstack.last != dirname) %>
53 <% dirstack.pop %></ul></li>
56 <% if size.nil? # This is a subdirectory. %>
57 <% dirstack.push(File.join(dirname, filename)) %>
59 <ul class="collection_files">
62 link_opts.merge(file: file_path),
63 {title: "Download #{file_path}"}) %>
67 <%= raw(dirstack.map { |_| "</ul>" }.join("</li>")) %>
69 <p>No files in this collection.</p>
73 <h2>About Arvados</h2>
75 <p>Arvados is a free and open source software bioinformatics platform.
76 To learn more, visit arvados.org.
77 Arvados is not responsible for the files listed on this page.</p>