1 <div style="margin-top: 10px">
3 <% pj[:job] = @object %>
4 <% pj[:name] = @object[:name] || "this job" %>
5 <% tasks = JobTask.filter([['job_uuid', '=', @object.uuid]]).results %>
6 <%= render partial: 'pipeline_instances/running_component', locals: {tasks: tasks, pj: pj, i: 0, expanded: true} %>
9 <div class="panel panel-default">
10 <div class="panel-heading">
11 <span class="panel-title">Used in pipelines</span>
13 <div class="panel-body">
14 <% pi = PipelineInstance.order("created_at desc").filter([["components", "like", "%#{@object.uuid}%"]]) %>
16 <% pi.each do |pipeline| %>
17 <% pipeline.components.each do |k, v| %>
18 <% if v[:job] and v[:job][:uuid] == @object.uuid %>
20 <b><%= k %></b> component of <%= link_to_if_arvados_object pipeline, friendly_name: true %>
21 created at <%= render_localized_date(pipeline.created_at) %>.