<% content_for(:javascripts) do %> <%= webpacked_plugins_js_for :'foreman-tasks' %> <% end %> <% content_for(:stylesheets) do %> <%= webpacked_plugins_css_for :'foreman-tasks' %> <% end %> <% content_for(:before_search_bar) do %>
<%= mount_react_component('TasksDashboard', '#tasks-dashboard', { yo: 'ya' }.to_json) %> <% end %> <% title _("Tasks") %> <% title_actions csv_link, help_button %> <% stylesheet 'foreman_tasks/tasks' %>
<% @tasks.each do |task| %> <% end %>
<%= _("Action") %> <%= _("State") %> <%= _("Result") %> <%= sort :started_at, :as => _("Started at") %> <%= sort :ended_at, :as => _("Ended at") %> <%= _("User") %>
<%= link_to_if_authorized(format_task_input(task), hash_for_foreman_tasks_task_path(:id => task)) %> <%= task.state %> <%= _("(Disabled)") if task.frozen %> <%= task.result %> <%= task.started_at.try(:in_time_zone) %> <%= task.ended_at.try(:in_time_zone) %> <%= task.username %>
<%= will_paginate_with_info @tasks %>