9319: /all_processes index page.
[arvados.git] / apps / workbench / app / views / work_unit / _component_detail.html.erb
diff --git a/apps/workbench/app/views/work_unit/_component_detail.html.erb b/apps/workbench/app/views/work_unit/_component_detail.html.erb
deleted file mode 100644 (file)
index 045154a..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-      <div class="container">
-        <div class="row">
-          <div class="col-md-5">
-            <table>
-              <% [:uuid, :modified_by_user_uuid, :created_at, :started_at, :finished_at, :priority].each do |k| %>
-                <% val = current_obj.send(k) if current_obj.respond_to?(k) %>
-                <% unless val.nil? %>
-                <tr>
-                  <td style="padding-right: 1em">
-                    <%= k.to_s %>:
-                  </td>
-                  <td>
-                    <% if k == :uuid %>
-                      <%= link_to_arvados_object_if_readable(val, val, link_text: val) %>
-                    <% elsif k.to_s.end_with? 'uuid' %>
-                      <%= link_to_arvados_object_if_readable(val, val, friendly_name: true) %>
-                    <% elsif k.to_s.end_with? '_at' %>
-                      <%= render_localized_date(val) %>
-                    <% else %>
-                      <%= val %>
-                    <% end %>
-                  </td>
-                </tr>
-                <% end %>
-              <% end %>
-            </table>
-          </div>
-          <div class="col-md-6">
-            <table>
-              <% # link to repo tree/file only if the repo is readable
-                 # and the commit is a sha1...
-                 repo =
-                 (/^[0-9a-f]{40}$/ =~ current_obj.script_version and
-                 Repository.where(name: current_obj.repository).first)
-
-                 # ...and the api server provides an http:// or https:// url
-                 repo = nil unless repo.andand.http_fetch_url
-                 %>
-              <% [:script, :repository, :script_version, :supplied_script_version, :nondeterministic].each do |k| %>
-                <% val = current_obj.send(k) if current_obj.respond_to?(k) %>
-                <% unless val.nil? %>
-                <tr>
-                  <td style="padding-right: 1em">
-                    <%= k.to_s %>:
-                  </td>
-                  <td>
-                    <% if repo and k == :repository %>
-                      <%= link_to val, show_repository_tree_path(id: repo.uuid, commit: current_obj.script_version, path: '/') %>
-                    <% elsif repo and k == :script %>
-                      <%= link_to val, show_repository_blob_path(id: repo.uuid, commit: current_obj.script_version, path: 'crunch_scripts/'+current_obj.script) %>
-                    <% elsif repo and k == :script_version %>
-                      <%= link_to val, show_repository_commit_path(id: repo.uuid, commit: current_obj.script_version) %>
-                    <% else %>
-                      <%= val %>
-                    <% end %>
-                  </td>
-                </tr>
-                <% end %>
-              <% end %>
-              <% if current_obj.runtime_constraints.andand[:docker_image] and current_obj.docker_image %>
-                <tr>
-                  <td style="padding-right: 1em">
-                    docker_image:
-                  </td>
-                  <td>
-                    <%= current_obj.runtime_constraints[:docker_image] %>
-                  </td>
-                </tr>
-                <tr>
-                  <td style="padding-right: 1em">
-                    docker_image_locator:
-                  </td>
-                  <td>
-                    <%= link_to_arvados_object_if_readable(current_obj.docker_image,
-                      current_obj.docker_image, friendly_name: true) %>
-                  </td>
-                </tr>
-              <% end %>
-            </table>
-          </div>
-        </div>
-        <% unless current_obj.parameters.nil? %>
-        <div class="row">
-          <div class="col-md-6">
-            <p>script_parameters:</p>
-            <pre><%= JSON.pretty_generate(current_obj.parameters) rescue nil %></pre>
-          </div>
-        </div>
-        <% end %>
-      </div>
-    </div>