Sha256: cd3e175d53749ff977b55a0c6ba34c74cc674c638f812268bcb4f2da79233d51

Contents?: true

Size: 1.45 KB

Versions: 26

Compression:

Stored size: 1.45 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 = ForemanTasks.dynflow.world.persistence.load_action(step) %>
        <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>
          <p>
            <span class="param-name"><%= _("State") %>:</span>
            <span class="param-value"><%= action.humanized_state %></span>
          </p>
          <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

26 entries across 26 versions & 1 rubygems

Version Path
foreman-tasks-0.8.2 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.8.1 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.8.0 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.20 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.19 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.18 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.17 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.16 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.15 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.14 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.13 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.12 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.11 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.10 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.9 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.8 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.7 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.6 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.5 app/views/foreman_tasks/tasks/_running_steps.html.erb
foreman-tasks-0.7.4 app/views/foreman_tasks/tasks/_running_steps.html.erb