1 <% content_for :tab_line_buttons do %>
4 title: 'Copy to project...',
6 action_href: actions_path,
9 copy_selections_into_project: true,
10 selection: @name_link.andand.uuid || @object.uuid,
11 selection_param: 'uuid',
12 success: 'redirect-to-created-object'
14 { class: "btn btn-sm btn-primary arv-move-to-project", remote: true, method: 'get' }) do %>
15 <i class="fa fa-fw fa-copy"></i> Copy to project...
19 <div class="row row-fill-height">
20 <div class="col-md-6">
21 <div class="panel panel-info">
22 <div class="panel-heading">
23 <h3 class="panel-title">
24 <% if @name_link.nil? and @object.uuid.match /[0-9a-f]{32}/ %>
25 Content hash <%= @object.portable_data_hash %>
27 <%= if @object.respond_to? :name
28 render_editable_attribute @object, :name
30 @name_link.andand.name || @object.uuid
35 <div class="panel-body">
36 <div class="arv-description-as-subtitle">
37 <%= render_editable_attribute @object, 'description', nil, { 'data-emptytext' => "(No description provided)", 'data-toggle' => 'manual' } %>
39 <img src="/favicon.ico" class="pull-right" alt="" style="opacity: 0.3"/>
40 <% if defined? @same_pdh %>
41 <p>Found in collections:<p>
43 <% @same_pdh.each do |c| %>
44 <%= link_to_if_arvados_object get_object(c.owner_uuid), {:friendly_name => true} %> / <%= link_to_if_arvados_object c, {:friendly_name => true} %><br>
48 <p><i>Content hash:</i><br />
49 <span class="arvados-uuid"><%= link_to @object.portable_data_hash, collection_path(@object.portable_data_hash) %></span></p>
51 <%= render partial: "show_source_summary" %>
55 <div class="col-md-3">
56 <div class="panel panel-default">
57 <div class="panel-heading">
58 <h3 class="panel-title">
62 <div class="panel-body smaller-text">
64 <input type="text" class="form-control" placeholder="Search"/>
66 <div style="height:0.5em;"></div>
67 <% name_or_object = @name_link.andand.uuid ? @name_link : @object %>
68 <% if name_or_object.created_at and not @logs.andand.any? %>
70 Created: <%= name_or_object.created_at.to_s(:long) if name_or_object.created_at %>
73 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 %>
76 <%= render_arvados_object_list_start(@logs, 'Show all activity',
77 logs_path(filters: [['object_uuid','=',name_or_object.uuid]].to_json)) do |log| %>
79 <%= time_ago_in_words(log.event_at) rescue 'unknown time' %> ago: <%= log.summary %>
80 <% if log.object_uuid %>
81 <%= link_to_if_arvados_object log.object_uuid, link_text: raw('<i class="fa fa-hand-o-right"></i>') %>
89 <div class="col-md-3">
90 <div class="panel panel-default">
91 <div class="panel-heading">
92 <h3 class="panel-title">
93 Sharing and permissions
96 <div class="panel-body">
98 <input type="text" class="form-control" placeholder="Search"/>
101 <div id="sharing-button">
102 <%= render partial: 'sharing_button' %>
105 <div style="height:0.5em;"></div>
106 <% if @projects.andand.any? %>
107 <p>Included in projects:<br />
108 <%= render_arvados_object_list_start(@projects, 'Show all projects',
109 links_path(filters: [['head_uuid', '=', @object.uuid],
110 ['link_class', '=', 'name']].to_json)) do |project| %>
111 <%= link_to_if_arvados_object(project, friendly_name: true) %><br />
115 <% if @permissions.andand.any? %>
116 <p>Readable by:<br />
117 <%= render_arvados_object_list_start(@permissions, 'Show all permissions',
118 links_path(filters: [['head_uuid', '=', @object.uuid],
119 ['link_class', '=', 'permission']].to_json)) do |link| %>
120 <%= link_to_if_arvados_object(link.tail_uuid, friendly_name: true) %><br />
130 <%= render file: 'application/show.html.erb', locals: local_assigns %>