X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5f7fa947b13eeee04d56b487f7173308635aa60c..69963d8ac67ce1a0711cb3e92a75b2961cbc76b9:/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 8c6e83e790..f0af963c2a 100644 --- a/apps/workbench/app/views/collections/show.html.erb +++ b/apps/workbench/app/views/collections/show.html.erb @@ -1,295 +1,86 @@ -<%= content_for :css do %> -<%# https://github.com/mbostock/d3/wiki/Ordinal-Scales %> -<% n=-1; %w(#1f77b4 #ff7f0e #2ca02c #d62728 #9467bd #8c564b #e377c2 #7f7f7f #bcbd22 #17becf).each do |color| %> -.colorseries-10-<%= n += 1 %>, .btn.colorseries-10-<%= n %>:hover, .label.colorseries-10-<%= n %>:hover { - *background-color: <%= color %>; - background-color: <%= color %>; - background-image: none; -} -<% end %> -.colorseries-nil { } -.label a { - color: inherit; -} -#provenance_graph { - padding-left: 3px; - overflow:auto; - border:solid; - border-width:1px; - border-color: gray; - position: absolute; - left: 1px; -} -<% end %> - -<%#= render :partial => 'nav' %> - -
path | -file | -d/l | -size | -
---|---|---|---|
- <%= file[0] %> - | - -- <%= link_to file[1], {controller: 'collections', action: 'show_file', uuid: @object.uuid, file: file_path, size: file[2], disposition: 'inline'}, {title: 'View in browser'} %> - | - -
-
- <%= 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'} %>
-
- |
-
- - <%= raw(human_readable_bytes_html(file[2])) %> - | - -
Collection UUID:
+ <%= render partial: "show_autoselect_text", locals: {text: @object.uuid, tagclass: "arvados-uuid"} %>
+
Content address:
+ <%= render partial: "show_autoselect_text", locals: {text: @object.portable_data_hash, tagclass: "arvados-uuid"} %>
+
-
- ↓
-
- - <%= 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] %> - | - | -
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 %>
+
- job - | - version - | - status - | - start - | - finish - | - clock time - | -
---|---|---|---|---|---|
- <%= j.uuid %>
- - <%= j.submit_id %> - | - <%= j.script_version %> - | - - <%= j.success || j.running ? '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] %> - | - | -
- 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 %> - |
-