bootstrap-x-editable-rails (1.5.1.1)
railties (>= 3.0)
builder (3.0.4)
- byebug (2.7.0)
- columnize (~> 0.3)
- debugger-linecache (~> 1.2)
capistrano (2.15.5)
highline
net-scp (>= 1.0.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
- columnize (0.3.6)
commonjs (0.2.7)
daemon_controller (1.1.7)
- debugger-linecache (1.2.0)
erubis (2.7.0)
execjs (2.0.2)
highline (1.6.20)
andand
bootstrap-sass (~> 3.1.0)
bootstrap-x-editable-rails
- byebug
coffee-rails (~> 3.2.0)
httpclient
jquery-rails
padding-left: 1em;
padding-right: 1em;
}
+table.pipeline-components-table {
+ width: 100%;
+ table-layout: fixed;
+}
+
table.pipeline-components-table thead th {
text-align: bottom;
}
table.pipeline-components-table div.progress {
margin-bottom: 0;
}
+
<% end %>
-<br />
+<% if @object.active != nil %>
<table class="table pipeline-components-table">
<colgroup>
- <col width="15%" />
- <col width="15%" />
- <col width="35%" />
- <col width="35%" />
+ <col style="width: 15%" />
+ <col style="width: 35%" />
+ <col style="width: 15%" />
+ <col style="width: 35%" />
</colgroup>
<thead>
<tr>
<th>
component
+ </th><th>
+ script, version
</th><th>
progress
<%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
- </th><th>
- script, version
</th><th>
output
</th>
<% else %>
<%= pj[:name] %>
<% end %>
+ </td><td>
+ <%= pj[:script] %>
+ <br /><span class="deemphasize"><%= pj[:script_version] %></span>
</td><td>
<%= pj[:progress_bar] %>
<% if pj[:job].andand[:cancelled_at] %>
<% elsif pj[:result] == 'queued' %>
<span class="pull-right label">queued</span>
<% end %>
- </td><td>
- <%= pj[:script] %>
- <br /><span class="deemphasize"><%= pj[:script_version] %></span>
</td><td>
<%= link_to_if_arvados_object pj[:output] %>
</td>
<% end %>
<% end %>
-<pre><%= JSON.pretty_generate @object.attributes %></pre>
+<% else %>
+
+ <%= form_tag @object, :method => :put do |f| %>
+
+ <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :active, :value => true %>
+ <%= button_tag "Run pipeline", {class: 'btn btn-primary pull-right'} %>
+ <% end %>
+
+<table class="table pipeline-components-table" style="margin-top: -.1em">
+ <colgroup>
+ <col style="width: 15%" />
+ <col style="width: 35%" />
+ <col style="width: 15%" />
+ <col style="width: 35%" />
+ </colgroup>
+
+ <thead>
+ <tr>
+ <th>
+ component
+ </th><th>
+ script, version
+ </th><th>
+ parameter
+ </th><th>
+ input
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <% @object.components.each do |k, v| %>
+
+ <% sp = v[:script_parameters].collect do |k, v| [k, v] end %>
+
+ <tr>
+ <td><%= k %></td>
+
+ <td><%= v[:script] %>
+ <br /><span class="deemphasize"> <%= v[:script_version] %></span>
+ </td>
+
+ <td>
+ <%= sp[0][0] %>
+ </td>
+
+ <td>
+ <%= sp[0][1] %>
+ </td>
+ </tr>
+
+ <% if sp.length > 1 %>
+ <tr>
+ <td></td>
+ <td></td>
+
+ <% sp[1..-1].each do |p| %>
+ <%= p[0] %>
+ <%= p[1] %>
+ <% end %>
+ </tr>
+ <% end %>
+ <% end %>
+ </tbody>
+ </table>
+
+<% end %>