1 <%= render(partial: 'work_units/show_status', locals: {current_obj: @object, name: @object[:name] || 'this job'}) %>
3 <div class="panel panel-default">
4 <div class="panel-heading">
5 <span class="panel-title">Used in pipelines</span>
7 <div class="panel-body used-in-pipelines">
8 <% pi = PipelineInstance.order("created_at desc").filter([["components", "like", "%#{@object.uuid}%"]]) %>
10 <% pi.each do |pipeline| %>
11 <% pipeline.components.each do |k, v| %>
12 <% if v[:job] and v[:job][:uuid] == @object.uuid %>
16 <%= link_to_if_arvados_object pipeline, friendly_name: true %>
18 <%= render_localized_date(pipeline.created_at) %>.
25 <div class="panel-heading">
26 <span class="panel-title">Used in jobs</span>
29 <% jobs = Job.order("created_at desc").filter([["components", "like", "%#{@object.uuid}%"]]).limit(10) %>
32 if jobs.items_available > jobs.results.size
33 too_many_message = (jobs.items_available - jobs.results.size).to_s + ' more jobs are not listed.'
36 <div class="panel-body used-in-jobs">
37 <% if too_many_message != "" %>
38 <p><i><%= too_many_message %></i></p>
40 <% jobs.each do |j| %>
41 <% j.components.each do |k, v| %>
42 <% if v == @object.uuid %>
46 <%= link_to_if_arvados_object j, friendly_name: true %>
48 <%= render_localized_date(j.created_at) %>.