1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
6 wf_def = ActiveSupport::HashWithIndifferentAccess.new YAML::load(@object.definition) if @object.definition
7 wf_def = wf_def[:"$graph"].andand[0] || wf_def if wf_def
10 baseCommand = wf_def.andand["baseCommand"]
11 items['baseCommand'] = baseCommand if baseCommand
13 args = wf_def.andand["arguments"]
14 items['arguments'] = args if args
16 hints = wf_def.andand["hints"]
17 items['hints'] = hints if hints
19 inputs = wf_def.andand["inputs"]
20 items['inputs'] = inputs if inputs
22 outputs = wf_def.andand["outputs"]
23 items['outputs'] = outputs if outputs
25 # preload the collections
28 v.to_s.scan(/([0-9a-f]{32}\+\d+)/).each {|l| collections_pdhs += l}
30 collections_pdhs.compact.uniq
31 preload_for_pdhs collections_pdhs if collections_pdhs.any?
32 preload_links_for_objects collections_pdhs if collections_pdhs.any?
35 <div class="col-md-12">
36 <table class="table table-condensed" style="table-layout:fixed;">
40 <% items.each do |k, v| %>
46 <% val = JSON.pretty_generate(v) %>
47 <%= render partial: 'show_text_with_locators', locals: {data_height: 300, text_data: val} %>