2872: Disable chooser OK button until selection is made, update run-pipeline wording.
[arvados.git] / apps / workbench / app / views / collections / show.html.erb
1 <div class="row row-fill-height">
2   <div class="col-md-6">
3     <div class="panel panel-info">
4       <div class="panel-heading">
5         <h3 class="panel-title">
6           <% "Collection #{@object.uuid}" %>
7         </h3>
8       </div>
9       <div class="panel-body">
10         <img src="/favicon.ico" class="pull-right" alt="" style="opacity: 0.3"/>
11         <% if not (@output_of.andand.any? or @log_of.andand.any?) %>
12           <p><i>No source information available.</i></p>
13         <% end %>
14
15         <% if @output_of.andand.any? %>
16           <p>This collection was the output of:<br />
17           <%= render_arvados_object_list_start(@output_of, 'Show all jobs',
18                 jobs_path(filter: [['output', '=', @object.uuid]].to_json)) do |job| %>
19             <%= link_to_if_arvados_object(job, friendly_name: true) %><br />
20           <% end %>
21           </p>
22         <% end %>
23
24         <% if @log_of.andand.any? %>
25           <p>This collection contains log messages from:<br />
26           <%= render_arvados_object_list_start(@log_of, 'Show all jobs',
27                 jobs_path(filter: [['log', '=', @object.uuid]].to_json)) do |job| %>
28             <%= link_to_if_arvados_object(job, friendly_name: true) %><br />
29           <% end %>
30           </p>
31         <% end %>
32       </div>
33     </div>
34   </div>
35   <div class="col-md-3">
36     <div class="panel panel-default">
37       <div class="panel-heading">
38         <h3 class="panel-title">
39           Activity
40         </h3>
41       </div>
42       <div class="panel-body smaller-text">
43         <!--
44         <input type="text" class="form-control" placeholder="Search"/>
45         -->
46         <div style="height:0.5em;"></div>
47         <% if not @logs.andand.any? %>
48           <p>
49             Created: <%= @object.created_at.to_s(:long) %>
50           </p>
51           <p>
52             Last modified: <%= @object.modified_at.to_s(:long) %> by <%= link_to_if_arvados_object @object.modified_by_user_uuid, friendly_name: true %>
53           </p>
54         <% else %>
55           <%= render_arvados_object_list_start(@logs, 'Show all activity',
56                 logs_path(filters: [['object_uuid','=',@object.uuid]].to_json)) do |log| %>
57           <p>
58           <%= time_ago_in_words(log.event_at) rescue 'unknown time' %> ago: <%= log.summary %>
59             <% if log.object_uuid %>
60             <%= link_to_if_arvados_object log.object_uuid, link_text: raw('<i class="fa fa-hand-o-right"></i>') %>
61             <% end %>
62           </p>
63           <% end %>
64         <% end %>
65       </div>
66     </div>
67   </div>
68   <div class="col-md-3">
69     <div class="panel panel-default">
70       <div class="panel-heading">
71         <h3 class="panel-title">
72           Sharing and permissions
73         </h3>
74       </div>
75       <div class="panel-body">
76         <!--
77         <input type="text" class="form-control" placeholder="Search"/>
78         -->
79
80         <div id="sharing-button">
81           <%= render partial: 'sharing_button' %>
82         </div>
83
84         <div style="height:0.5em;"></div>
85         <% if @folders.andand.any? %>
86           <p>Included in folders:<br />
87           <%= render_arvados_object_list_start(@folders, 'Show all folders',
88                 links_path(filter: [['head_uuid', '=', @object.uuid],
89                                     ['link_class', '=', 'name']].to_json)) do |folder| %>
90           <%= link_to_if_arvados_object(folder, friendly_name: true) %><br />
91           <% end %>
92           </p>
93         <% end %>
94         <% if @permissions.andand.any? %>
95           <p>Readable by:<br />
96           <%= render_arvados_object_list_start(@permissions, 'Show all permissions',
97                 links_path(filter: [['head_uuid', '=', @object.uuid],
98                                     ['link_class', '=', 'permission']].to_json)) do |link| %>
99           <%= link_to_if_arvados_object(link.tail_uuid, friendly_name: true) %><br />
100           <% end %>
101           </p>
102         <% end %>
103
104       </div>
105     </div>
106   </div>
107 </div>
108
109 <%= render file: 'application/show.html.erb' %>