Sha256: 6732c7d2ad449d99f775842954b0204c60bb733b17a369047ba69ee08542c441

Contents?: true

Size: 1.26 KB

Versions: 14

Compression:

Stored size: 1.26 KB

Contents

<% if @task.is_a? ForemanTasks::Task::DynflowTask %>
  <div>
    <% running_steps = @task.running_steps %>
    <% if running_steps.empty? %>
      <%= _("No running steps") %>
    <% else %>
      <% running_steps.each do |step| %>
        <% action = step.action(@task.execution_plan) %>
        <div class="alert alert-warning">
          <p>
            <% if @task.cancellable_action?(action) %>
              <%= link_to(_('Cancel'),
                          cancel_step_foreman_tasks_task_path(@task, :step_id => step.id),
                          class:  ['btn', 'btn-sm', 'btn-primary'].compact,
                          method: :post) %>
            <% end %>
          </p>
          <p>
          <span class="param-name"><%= _("Action") %>:</span>
          <span class="param-value">
            <pre><%= action.class %></pre>
          </span>
          <span class="param-name"><%= _("Input") %>:</span>
          <span class="param-value">
            <pre><%= action.input.pretty_inspect %></pre>
          </span>
          <span class="param-name"><%= _("Output") %>:</span>
          <span class="param-value">
            <pre><%= action.output.pretty_inspect %></pre>
          </span>
        </div>
        <% end %>
          </p>
    <% end %>
  </div>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
foreman-tasks-0.6.13 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.12 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.11 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.10 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.9 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.8 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.7 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.6 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.5 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.4 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.3 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.2 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.1 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.6.0 app/views/foreman_tasks/tasks/_running_steps.html.erb