<%= t(".title") %>

<% if @nodes.empty? %>

<%= t(".empty") %>

<% else %> <%= will_paginate @nodes %> <% @nodes.each do |node| %> <% entry = node.last_trash_entry %> <% doomed_below = node.descendants.count %> <% end %>
<%= t("admin.columns.title") %> <%= t(".was_at") %> <%= t(".trashed") %> <%= t("admin.columns.actions") %>
<%= link_to (node.draft&.title || node.slug), node_path(node) %><%= " " + t(".beneath", :count => doomed_below) if doomed_below > 0 %> <%= entry&.metadata&.dig("path", "from") %> <% if entry %> <%= t(".trashed_by", :time => entry.occurred_at.strftime("%Y-%m-%d %H:%M"), :actor => entry.actor_name) %> <% end %> <%= button_to node_path(node), method: :delete, form: { data: { confirm: t(".confirm_delete", :title => (node.draft&.title || node.slug), :count => doomed_below) }, class: 'button_to destructive' } do %> <%= icon("trash-x", library: "tabler", "aria-hidden": true) %> <%= t(".delete_permanently") %> <% end %>
<%= will_paginate @nodes %>

<%= t(".restore_hint") %>

<% end %>