foreman/app/views/audits/index.html.erb @ 82e47ae0
661e86c7 | Ohad Levy | <% title "Audits" %>
|
|
82e47ae0 | Amos Benari | <table class="table table-bordered table-striped">
|
|
661e86c7 | Ohad Levy | <tr>
|
|
3b49df17 | Amos Benari | <th><%= sort :changed %></th>
|
|
661e86c7 | Ohad Levy | <th>Object</th>
|
|
fd2fa665 | Greg Sutcliffe | <th>Parent</th>
|
|
3b49df17 | Amos Benari | <th><%= sort :action %></th>
|
|
<th><%= sort :changed_at, :as => "Changed at" %></th>
|
|||
661e86c7 | Ohad Levy | <th>Changes</th>
|
|
3b49df17 | Amos Benari | <th><%= sort :user, :as => "Changed by" %></th>
|
|
661e86c7 | Ohad Levy | <th></th>
|
|
</tr>
|
|||
<% for audit in @audits %>
|
|||
aee513b8 | Ohad Levy | <tr class="<%= cycle("even", "odd") -%>">
|
|
017e1049 | Ohad Levy | <td><%= association_type(audit) %></td>
|
|
<td><%= audit_title(audit) %></td>
|
|||
<td><%= audit_parent(audit) %></td>
|
|||
<td><%= audit.action %></td>
|
|||
<td><%= audit.created_at.to_s(:long) %></td>
|
|||
<td><%= changes_column audit.changes %></td>
|
|||
<td><%= audit.user_as_string %></td>
|
|||
661e86c7 | Ohad Levy | <td><%= link_to "Details", audit %></td>
|
|
</tr>
|
|||
<% end %>
|
|||
</table>
|
|||
<%= page_entries_info @audits %>
|
|||
<%= will_paginate @audits %>
|