X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c185e2e2eb0a411b40e8d34c5e0bfe31addedcff..274ca7a6c2f1f600de4242eee6cb4e8465d4440c:/apps/workbench/app/views/collections/show.html.erb diff --git a/apps/workbench/app/views/collections/show.html.erb b/apps/workbench/app/views/collections/show.html.erb index d525c7804c..a80cf3985d 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -1,245 +1,130 @@ -<%= content_for :head do %> - -<% end %> - -<%#= render :partial => 'nav' %> -
- -size | -- - path - | -
---|---|
- <%= raw(human_readable_bytes_html(file[2])) %> - |
-
- <%= link_to raw(''), {controller: 'collections', action: 'show_file', uuid: @object.uuid, file: file_path, size: file[2], disposition: 'attachment'}, {class: 'label label-info', title: 'Download'} %>
- <% if file_path.match /\.(txt|pdf|png|jpe?g|gif|tiff?|html?)$/i %>
- <%= link_to raw(''), {controller: 'collections', action: 'show_file', uuid: @object.uuid, file: file_path, size: file[2], disposition: 'inline'}, {class: 'label label-info', title: 'View in browser'} %>
+
+
+
+
+
- <%= file_path %>
- + <% if @name_link.nil? and @object.uuid.match /[0-9a-f]{32}/ %> + Content hash <%= @object.portable_data_hash %> + <% else %> + <%= if @object.respond_to? :name + render_editable_attribute @object, :name + else + @name_link.andand.name || @object.uuid + end %> <% end %> - |
-
-
- ↓
-
- - <%= j.script %> <%= link_to_if j.script_version.match(/[0-9a-f]{40}/), j.script_version, "https://arvados.org/projects/arvados/repository/revisions/#{j.script_version}/entry/crunch_scripts/#{j.script}" if j.script_version %> - - ↓ - - <%= link_to_if_arvados_object p[:output] %> - |
-
- job: <%= link_to_if_arvados_object j %> <%= j.submit_id %> - |
- ||||
- lookup fail
- - <%= p[:target] %> - | - | -
- job - | - version - | - status - | - start - | - finish - | - clock time - | -
---|---|---|---|---|---|
- <%= j.uuid %>
- - <%= j.submit_id %> - | - <%= j.script_version %> - | - - <%= j.success || j.active ? 'ok' : 'failed' %> - - | - <%= j.started_at %> - | - <%= j.finished_at %> - | - <% if j.started_at and j.finished_at %> - <%= raw(distance_of_time_in_words(j.started_at, j.finished_at).sub('about ','~').sub(' ',' ')) %> - <% elsif j.started_at and j.running %> - <%= raw(distance_of_time_in_words(j.started_at, Time.now).sub('about ','~').sub(' ',' ')) %> (running) - <% end %> - | -
- lookup fail
- - <%= p[:target] %> - | - | -
Found in collections:
+
+ <% @same_pdh.each do |c| %>
+ <%= link_to_if_arvados_object get_object(c.owner_uuid), {:friendly_name => true} %> / <%= link_to_if_arvados_object c, {:friendly_name => true} %>
+ <% end %>
+
Content hash:
+ <%= link_to @object.portable_data_hash, collection_path(@object.portable_data_hash) %>
- collection - | - data size - | - storage - | - origin - | -
---|---|---|---|
- <%= sourcedata[:uuid] %> - | - <%= raw(human_readable_bytes_html(sourcedata[:collection].data_size)) if sourcedata[:collection] and sourcedata[:collection].data_size %> - | - <% if @protected[sourcedata[:uuid]] %> - keep - <% else %> - cache - <% end %> - |
- <% if sourcedata[:data_origins] %>
- <% sourcedata[:data_origins].each do |data_origin| %>
- <%= data_origin[0] %>
- <%= data_origin[2] %>
- - <% end %> - <% end %> - |
-
+ Created: <%= name_or_object.created_at.to_s(:long) if name_or_object.created_at %> +
++ Last modified: <%= name_or_object.modified_at.to_s(:long) if name_or_object.modified_at %> by <%= link_to_if_arvados_object name_or_object.modified_by_user_uuid, friendly_name: true %> +
+ <% else %> + <%= render_arvados_object_list_start(@logs, 'Show all activity', + logs_path(filters: [['object_uuid','=',name_or_object.uuid]].to_json)) do |log| %> ++ <%= time_ago_in_words(log.event_at) rescue 'unknown time' %> ago: <%= log.summary %> + <% if log.object_uuid %> + <%= link_to_if_arvados_object log.object_uuid, link_text: raw('') %> + <% end %> +
+ <% end %> + <% end %> +Included in projects:
+ <%= render_arvados_object_list_start(@projects, 'Show all projects',
+ links_path(filters: [['head_uuid', '=', @object.uuid],
+ ['link_class', '=', 'name']].to_json)) do |project| %>
+ <%= link_to_if_arvados_object(project, friendly_name: true) %>
+ <% end %>
+
Readable by:
+ <%= render_arvados_object_list_start(@permissions, 'Show all permissions',
+ links_path(filters: [['head_uuid', '=', @object.uuid],
+ ['link_class', '=', 'permission']].to_json)) do |link| %>
+ <%= link_to_if_arvados_object(link.tail_uuid, friendly_name: true) %>
+ <% end %>
+