Sha256: e5ee4fbc579873a06e3cc3535911c9f01f28d220d161da240edadd1d7644b981

Contents?: true

Size: 1.25 KB

Versions: 11

Compression:

Stored size: 1.25 KB

Contents

<% title _("Tasks") %>
<% title_actions SETTINGS[:version].short <= '1.13' ? help_path : 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 table-bordered table-striped table-two-pane">
  <tr>
    <th><%= _("Action") %></th>
    <th><%= _("State") %></th>
    <th><%= _("Result") %></th>
    <th><%= sort :started_at, :as => _("Started at") %></th>
    <th><%= sort :ended_at, :as => _("Ended at") %></th>
    <th><%= _("User") %></th>
  </tr>
  <% for task in @tasks %>
    <tr>
      <td class="task-id two-pane-link">
        <%= link_to_if_authorized(trunc_with_tooltip(format_task_input(task, true), 80),
        hash_for_foreman_tasks_task_path(:id => task)) %>
      </td>
      <td><%= task.state %></td>
      <td><%= task.result %></td>
      <td><%= task.started_at.try(:in_time_zone) %></td>
      <td><%= task.ended_at.try(:in_time_zone) %></td>
      <td><%= task.username %></td>
    </tr>
  <% end %>
</table>
<%= page_entries_info @tasks %>
<%= will_paginate @tasks %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman-tasks-0.9.6 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.9.5 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.10.0 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.9.4 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.9.3 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.9.2 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.9.1 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.9.0 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.8.6 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.8.5 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.8.4 app/views/foreman_tasks/tasks/index.html.erb