<% content_for :page_title do %>
<%= (@object.respond_to?(:properties) ? @object.properties[:page_title] : nil) ||
@object.friendly_link_name %>
<% end %>
<% if @object.andand.files.andand.any? %>
<% link_opts = {controller: 'collections', action: 'show_file',
uuid: @object.uuid, reader_token: params[:reader_token]} %>
<% @object.files.map { |spec|
CollectionsHelper::file_path(spec)
}.each do |path| %>
- <%= link_to(path, link_opts.merge(file: path)) %>
<% end %>
<% else %>
No files in this collection.
<% end %>