<% @provenance.reverse.each do |p| %> <% j = p[:job] %> <% if j %> <% else %> <% end %> <% end %>
job version status start finish clock time
<%= j.uuid %>
<%= j.submit_id %>
<%= j.script_version %> <%= j.success || j.running ? 'ok' : 'failed' %> <%= j.started_at %> <%= j.finished_at %> <% if j.started_at and j.finished_at %> <%= raw(distance_of_time_in_words(j.started_at, j.finished_at).sub('about ','~').sub(' ',' ')) %> <% elsif j.started_at and j.running %> <%= raw(distance_of_time_in_words(j.started_at, Time.now).sub('about ','~').sub(' ',' ')) %> (running) <% end %>
lookup fail
<%= p[:target] %>