[ARVADOS] updated: f7aa5c8d90710aa64bdc9e70f82e85c1b33302dc

git at public.curoverse.com git at public.curoverse.com
Wed Oct 22 16:45:00 EDT 2014


Summary of changes:
 .../app/views/jobs/_show_job_buttons.html.erb      | 29 ++++++++++++++++++++++
 .../app/views/jobs/_show_job_component.html.erb    |  6 +++++
 2 files changed, 35 insertions(+)
 create mode 100644 apps/workbench/app/views/jobs/_show_job_buttons.html.erb
 create mode 100644 apps/workbench/app/views/jobs/_show_job_component.html.erb

       via  f7aa5c8d90710aa64bdc9e70f82e85c1b33302dc (commit)
      from  222ce2930a9ab719e2f6f8d0c9268535f7b50abf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit f7aa5c8d90710aa64bdc9e70f82e85c1b33302dc
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Wed Oct 22 16:44:53 2014 -0400

    4084: Missing files.

diff --git a/apps/workbench/app/views/jobs/_show_job_buttons.html.erb b/apps/workbench/app/views/jobs/_show_job_buttons.html.erb
new file mode 100644
index 0000000..644da77
--- /dev/null
+++ b/apps/workbench/app/views/jobs/_show_job_buttons.html.erb
@@ -0,0 +1,29 @@
+<% if @object.state != "Running" %>
+    <%= form_tag '/jobs', style: "display:inline; padding-left: 1em" do |f| %>
+      <% [:script, :script_version, :repository, :supplied_script_version, :nondeterministic].each do |d| %>
+        <%= hidden_field :job, d, :value => @object[d] %>
+      <% end %>
+      <% [:script_parameters, :runtime_constraints].each do |d| %>
+        <%= hidden_field :job, d, :value => JSON.dump(@object[d]) %>
+      <% end %>
+      <%= button_tag ({class: 'btn btn-sm btn-primary', id: "re-run-same-job-button",
+                       title: 'Re-run job using the same script version as this run'}) do %>
+        <i class="fa fa-fw fa-gear"></i> Re-run same version
+      <% end %>
+    <% end %>
+  <% if @object.respond_to? :supplied_script_version and !@object.supplied_script_version.nil? and !@object.supplied_script_version.empty? and @object.script_version != @object.supplied_script_version%>
+      <%= form_tag '/jobs', style: "display:inline" do |f| %>
+      <% [:script, :repository, :supplied_script_version, :nondeterministic].each do |d| %>
+        <%= hidden_field :job, d, :value => @object[d] %>
+      <% end %>
+      <%= hidden_field :job, :script_version, :value => @object[:supplied_script_version] %>
+      <% [:script_parameters, :runtime_constraints].each do |d| %>
+        <%= hidden_field :job, d, :value => JSON.dump(@object[d]) %>
+      <% end %>
+      <%= button_tag ({class: 'btn btn-sm btn-primary', id: "re-run-latest-job-button",
+                       title: 'Re-run job using the latest script version'}) do%>
+        <i class="fa fa-fw fa-gear"></i> Re-run latest version
+      <% end %>
+    <% end %>
+  <% end %>
+<% end %>
diff --git a/apps/workbench/app/views/jobs/_show_job_component.html.erb b/apps/workbench/app/views/jobs/_show_job_component.html.erb
new file mode 100644
index 0000000..6ec6c7f
--- /dev/null
+++ b/apps/workbench/app/views/jobs/_show_job_component.html.erb
@@ -0,0 +1,6 @@
+<% pj = {} %>
+<% pj[:job] = @object %>
+<% pj[:name] = @object[:name] || "this job" %>
+<% pj[:progress_bar] = render(partial: "job_progress", locals: {:j => @object }) %>
+<% tasks = JobTask.filter([['job_uuid', '=', @object.uuid]]).results %>
+<%= render partial: 'pipeline_instances/running_component', locals: {tasks: tasks, pj: pj, i: 0, expanded: true} %>

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list