Sha256: 6bbdadcc6b19d8c88fdb51196159acd643e142fbf384d9cc1839f5f97196d0c0

Contents?: true

Size: 1.31 KB

Versions: 20

Compression:

Stored size: 1.31 KB

Contents

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

<style>
  .param-name {
    display: inline-block;
    width: 10em;
  }

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

<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

20 entries across 20 versions & 1 rubygems

Version Path
foreman-tasks-0.8.2 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.8.1 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.8.0 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.20 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.19 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.18 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.17 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.16 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.15 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.14 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.13 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.12 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.11 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.10 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.9 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.8 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.7 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.6 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.5 app/views/foreman_tasks/tasks/index.html.erb
foreman-tasks-0.7.4 app/views/foreman_tasks/tasks/index.html.erb