1 <% content_for :tab_line_buttons do %>
2 <% if @object.state == "Running" %>
3 <%= form_tag "/jobs/#{@object.uuid}/cancel", style: "display:inline; padding-left: 1em" do |f| %>
4 <%= button_tag "Cancel running job", {class: 'btn btn-sm btn-danger', id: "cancel-job-button"} %>
7 <%= form_tag '/jobs', style: "display:inline; padding-left: 1em" do |f| %>
8 <% [:script, :script_version, :repository, :supplied_script_version, :nondeterministic].each do |d| %>
9 <%= hidden_field :job, d, :value => @object[d] %>
11 <% [:script_parameters, :runtime_constraints].each do |d| %>
12 <%= hidden_field :job, d, :value => JSON.dump(@object[d]) %>
14 <%= button_tag "Re-run same version", {class: 'btn btn-sm btn-primary', id: "re-run-same-job-button"} %>
16 <% 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%>
17 <%= form_tag '/jobs', style: "display:inline" do |f| %>
18 <% [:script, :repository, :supplied_script_version, :nondeterministic].each do |d| %>
19 <%= hidden_field :job, d, :value => @object[d] %>
21 <%= hidden_field :job, :script_version, :value => @object[:supplied_script_version] %>
22 <% [:script_parameters, :runtime_constraints].each do |d| %>
23 <%= hidden_field :job, d, :value => JSON.dump(@object[d]) %>
25 <%= button_tag "Re-run latest version", {class: 'btn btn-sm btn-primary', id: "re-run-latest-job-button"} %>
31 <%= render partial: 'title_and_buttons' %>
32 <%= render partial: 'content', layout: 'content_layout', locals: {pane_list: controller.show_pane_list }%>