Sha256: f6fe2b7fe9442300edb1c41b40d994e16ccf5f06ce36c6c44bc1601f28592e2e

Contents?: true

Size: 1.14 KB

Versions: 38

Compression:

Stored size: 1.14 KB

Contents

<% title _("Tasks") %>
<% title_actions help_path%>

<style>
  .task-id {
    white-space: nowrap;
  }
  .param-name {
    display: inline-block;
    width: 10em;
  }

  .task-details pre {
    white-space: pre;
    word-break: normal;
  }
</style>

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

</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><%= _("User") %></th>
  </tr>
  <% for task in @tasks %>
    <tr>
      <td class="task-id two-pane-link">
        <%= link_to_if_authorized(format_task_input(task, true),
        hash_for_foreman_tasks_task_path(:id => task)) %>
      </td>
      <td><%= task.state %></td>
      <td><%= task.result %></td>
      <td><%= task.started_at %></td>
      <td><%= task.username %></td>
    </tr>
  <% end %>
</table>
<%= page_entries_info @tasks %>
<%= will_paginate @tasks %>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
foreman-tasks-0.5.0 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.4.0 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.3.6 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.3.5 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.3.4 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.3.3 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.3.2 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.3.1 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.3.0 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.2.2 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.2.1 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.2.0 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.1.5 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.1.4 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.1.3 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.1.2 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.1.1 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.1.0 app/views/foreman_tasks/tasks/index.html.erb