Sha256: fcc838af1f28460beb8b0391999cee028e07d6fa73783e9d15e7332e7ceaf34f

Contents?: true

Size: 698 Bytes

Versions: 22

Compression:

Stored size: 698 Bytes

Contents

<h4><%= link_to _("Latest Warning/Error Tasks"), foreman_tasks_tasks_path(:order=>'started_at DESC') %></h4>
<table class="table table-striped">
  <tr>
    <th><%= _("Name") %></th>
    <th><%= _("State") %></th>
    <th><%= _("Result") %></th>
  </tr>
  <% ForemanTasks::Task::Summarizer.new.latest_tasks_in_errors_warning.each do |task| %>
    <tr class="<%= ForemanTasks::Task::StatusExplicator.new.is_erroneous(task) ? 'text-danger' : '' %>">
      <td><%= link_to task.humanized[:action], defined?(main_app) ? main_app.foreman_tasks_task_path(task.id) : foreman_tasks_task_path(task.id) %></td>
      <td><%= task.state %></td>
      <td><%= task.result %></td>
    </tr>
  <% end %>
</table>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman-tasks-0.7.14 app/views/foreman_tasks/tasks/dashboard/_latest_tasks_in_error_warning.html.erb
foreman-tasks-0.7.13 app/views/foreman_tasks/tasks/dashboard/_latest_tasks_in_error_warning.html.erb