Sha256: ecd10427572e2899f5d5427f0ac94d46c01c911500fff3af03a7d967e982c607
Contents?: true
Size: 899 Bytes
Versions: 1
Compression:
Stored size: 899 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><%= _('%s ago') % time_ago_in_words(task.started_at) %></td> </tr> <% end %> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman-tasks-0.10.0 | app/views/foreman_tasks/tasks/dashboard/_latest_tasks_in_error_warning.html.erb |