1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
7 <% coll_name = "Collection #{@object.uuid}" %>
8 <% link_opts = {controller: 'collections', action: 'show_file',
9 uuid: @object.uuid, reader_token: params[:reader_token]} %>
11 <meta charset="utf-8">
13 <%= coll_name %> / <%= Rails.configuration.Workbench.SiteName %>
15 <meta name="description" content="">
16 <meta name="author" content="">
17 <meta name="robots" content="NOINDEX">
18 <style type="text/css">
23 background-color: #D9EDF7;
38 <h1><%= coll_name %></h1>
40 <p>This collection of data files is being shared with you through
41 Arvados. You can download individual files listed below. To download
42 the entire collection with wget, try:</p>
44 <pre>$ wget --mirror --no-parent --no-host --cut-dirs=3 <%=
45 url_for(link_opts.merge(action: 'show_file_links', only_path: false,
46 trailing_slash: true))
51 <% file_tree = @object.andand.files_tree %>
52 <% if file_tree.andand.any? %>
53 <ul id="collection_files" class="collection_files">
54 <% dirstack = [file_tree.first.first] %>
55 <% file_tree.take(10000).each_with_index do |(dirname, filename, size), index| %>
56 <% file_path = CollectionsHelper::file_path([dirname, filename]) %>
57 <% while dirstack.any? and (dirstack.last != dirname) %>
58 <% dirstack.pop %></ul></li>
61 <% if size.nil? # This is a subdirectory. %>
62 <% dirstack.push(File.join(dirname, filename)) %>
64 <ul class="collection_files">
67 link_opts.merge(file: file_path),
68 {title: "Download #{file_path}"}) %>
72 <%= raw(dirstack.map { |_| "</ul>" }.join("</li>")) %>
74 <p>No files in this collection.</p>
78 <h2>About Arvados</h2>
80 <p>Arvados is a free and open source software bioinformatics platform.
81 To learn more, visit arvados.org.
82 Arvados is not responsible for the files listed on this page.</p>