1 <% content_for :tab_line_buttons do %>
4 title: 'Copy to project...',
5 my_root_selectable: true,
7 action_href: actions_path,
10 copy_selections_into_project: true,
11 selection: @name_link.andand.uuid || @object.uuid,
12 selection_param: 'uuid',
13 success: 'redirect-to-created-object'
15 { class: "btn btn-sm btn-primary arv-move-to-project", remote: true, method: 'get' }) do %>
16 <i class="fa fa-fw fa-copy"></i> Copy to project...
20 <div class="row row-fill-height">
21 <div class="col-md-6">
22 <div class="panel panel-info">
23 <div class="panel-heading">
24 <h3 class="panel-title">
25 <%= @name_link.andand.name || @object.uuid %>
28 <div class="panel-body">
29 <img src="/favicon.ico" class="pull-right" alt="" style="opacity: 0.3"/>
30 <p><i>Content hash:</i><br />
31 <span class="arvados-uuid"><%= @object.uuid %></span></p>
33 <%= render partial: "show_source_summary" %>
37 <div class="col-md-3">
38 <div class="panel panel-default">
39 <div class="panel-heading">
40 <h3 class="panel-title">
44 <div class="panel-body smaller-text">
46 <input type="text" class="form-control" placeholder="Search"/>
48 <div style="height:0.5em;"></div>
49 <% name_or_object = @name_link.andand.uuid ? @name_link : @object %>
50 <% if name_or_object.created_at and not @logs.andand.any? %>
52 Created: <%= name_or_object.created_at.to_s(:long) %>
55 Last modified: <%= name_or_object.modified_at.to_s(:long) %> by <%= link_to_if_arvados_object name_or_object.modified_by_user_uuid, friendly_name: true %>
58 <%= render_arvados_object_list_start(@logs, 'Show all activity',
59 logs_path(filters: [['object_uuid','=',name_or_object.uuid]].to_json)) do |log| %>
61 <%= time_ago_in_words(log.event_at) rescue 'unknown time' %> ago: <%= log.summary %>
62 <% if log.object_uuid %>
63 <%= link_to_if_arvados_object log.object_uuid, link_text: raw('<i class="fa fa-hand-o-right"></i>') %>
71 <div class="col-md-3">
72 <div class="panel panel-default">
73 <div class="panel-heading">
74 <h3 class="panel-title">
75 Sharing and permissions
78 <div class="panel-body">
80 <input type="text" class="form-control" placeholder="Search"/>
83 <div id="sharing-button">
84 <%= render partial: 'sharing_button' %>
87 <div style="height:0.5em;"></div>
88 <% if @projects.andand.any? %>
89 <p>Included in projects:<br />
90 <%= render_arvados_object_list_start(@projects, 'Show all projects',
91 links_path(filters: [['head_uuid', '=', @object.uuid],
92 ['link_class', '=', 'name']].to_json)) do |project| %>
93 <%= link_to_if_arvados_object(project, friendly_name: true) %><br />
97 <% if @permissions.andand.any? %>
99 <%= render_arvados_object_list_start(@permissions, 'Show all permissions',
100 links_path(filters: [['head_uuid', '=', @object.uuid],
101 ['link_class', '=', 'permission']].to_json)) do |link| %>
102 <%= link_to_if_arvados_object(link.tail_uuid, friendly_name: true) %><br />
112 <% content_for :tab_line_buttons do %>
113 <span style="padding-left: 1em">Collection storage status:</span>
114 <%= render partial: 'toggle_persist', locals: { uuid: @object.uuid, current_state: (@is_persistent ? 'persistent' : 'cache') } %>
117 <%= render file: 'application/show.html.erb', locals: local_assigns %>