summaryrefslogtreecommitdiff
path: root/app/views/node_actions/index.html.erb
blob: ee062132d732bf221ebb0006719154642aed6f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<h1><%= t("node_actions.heading") %></h1>

<% if params[:node_id].present? || params[:user_id].present? %>
  <p><%= link_to t("node_actions.show_all"), admin_log_path %></p>
<% end %>

<%= will_paginate @actions %>

<table id="node_action_list">
  <% @actions.each do |action| %>
    <tr class="node_action node_action--<%= action.action %>">
      <td class="node_action_time"><%= action.occurred_at.strftime("%Y-%m-%d %H:%M") %></td>
      <td class="node_action_body">
        <%= action_summary(action) %>
        <% if action.node_id && params[:node_id].blank? %>
          <%= link_to t("node_actions.node_history"), admin_log_path(:node_id => action.node_id), :class => "node_action_zoom" %>
        <% end %>
        <% if action.inferred_from %>
          <span class="node_action_inferred" title="<%= action.inferred_from %>"><%= t("node_actions.backfilled") %></span>
        <% end %>
        <%= render "change_details", :action_entry => action if action_details?(action) %>
      </td>
    </tr>
  <% end %>
</table>

<%= will_paginate @actions %>