Sha256: 7989f04607702c18b7ed78bdfba5cbb421d112a493591cc558cf9c4db0c100a3

Contents?: true

Size: 930 Bytes

Versions: 4

Compression:

Stored size: 930 Bytes

Contents

<h4><%= link_to _("Latest Warning/Error Tasks"), foreman_tasks_tasks_path(:order=>'started_at DESC') %></h4>
<table class="table table-striped table-fixed">
  <tr>
    <th class="col-md-5"><%= _("Name") %></th>
    <th class="col-md-2"><%= _("State") %></th>
    <th class="col-md-2"><%= _("Result") %></th>
    <th class="col-md-3"><%= _("Started") %></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 class="ellipsis"><%= 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>
      <td><%= task.started_at ? (_('%s ago') % time_ago_in_words(task.started_at)) : _('N/A') %></td>
    </tr>
  <% end %>
</table>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman-tasks-0.10.4 app/views/foreman_tasks/tasks/dashboard/_latest_tasks_in_error_warning.html.erb
foreman-tasks-0.10.3 app/views/foreman_tasks/tasks/dashboard/_latest_tasks_in_error_warning.html.erb
foreman-tasks-0.10.2 app/views/foreman_tasks/tasks/dashboard/_latest_tasks_in_error_warning.html.erb
foreman-tasks-0.10.1 app/views/foreman_tasks/tasks/dashboard/_latest_tasks_in_error_warning.html.erb