Sha256: c65d317f27d5ded9e2f9ac761eced7afe591e81567b437af0051721a177a1929

Contents?: true

Size: 1.38 KB

Versions: 5

Compression:

Stored size: 1.38 KB

Contents

<% title _("Tasks") %>
<% title_actions csv_link, help_button %>
<% stylesheet 'foreman_tasks/tasks' %>

<script>

var currentTwoPaneTask;

$(document).on('click', ".table-two-pane td.two-pane-link", function(e) {
  currentTwoPaneTask = $(this).find("a");
  if(currentTwoPaneTask.length){
    e.preventDefault();
    two_pane_open(currentTwoPaneTask);
  }
});

</script>
<table class="<%= table_css_classes('table-fixed table-two-pane') %>">
  <tr>
    <th class="col-md-4"><%= _("Action") %></th>
    <th class="col-md-1"><%= _("State") %></th>
    <th class="col-md-1"><%= _("Result") %></th>
    <th class="col-md-2"><%= sort :started_at, :as => _("Started at") %></th>
    <th class="col-md-2"><%= sort :ended_at, :as => _("Ended at") %></th>
    <th class="col-md-2"><%= _("User") %></th>
  </tr>
  <% for task in @tasks %>
    <tr>
      <td class="task-id two-pane-link ellipsis">
        <%= link_to_if_authorized(format_task_input(task),
                                  hash_for_foreman_tasks_task_path(:id => task)) %>
      </td>
      <td class="ellipsis"><%= task.state %></td>
      <td class="ellipsis"><%= task.result %></td>
      <td class="ellipsis"><%= task.started_at.try(:in_time_zone) %></td>
      <td class="ellipsis"><%= task.ended_at.try(:in_time_zone) %></td>
      <td class="ellipsis"><%= task.username %></td>
    </tr>
  <% end %>
</table>
<%= will_paginate_with_info @tasks %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman-tasks-0.13.1 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.13.0 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.12.2 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.12.1 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.12.0 app/views/foreman_tasks/tasks/index.html.erb