<%= 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 %> <% title = node.draft&.title || node.slug %> <% target_missing = (node.draft || node.head)&.parent_node_missing? %> <% end %>
<%= link_to title, node_path(node) %><%= " " + t(".beneath", :count => doomed_below) if doomed_below > 0 %>
<%= t(".was_at") %> <%= entry&.metadata&.dig("path", "from") %>
<% if entry %>
<%= t(".trashed_by", :time => admin_datetime(entry.occurred_at), :actor => entry.actor_name) %>
<% end %>
<%= link_to node_path(node), "aria-label" => t("admin.common.show"), title: t("admin.common.show") do %> <%= icon("eye", library: "tabler", "aria-hidden": true) %> <% end %> <% if target_missing %> " aria-label="<%= t(".restore_target_missing") %>"> <%= icon("arrow-back-up", library: "tabler", "aria-hidden": true) %> <% else %> <%= button_to restore_from_trash_node_path(node), method: :put, form: { class: 'button_to state_changing' }, "aria-label" => t(".restore_here"), title: t(".restore_here") do %> <%= icon("arrow-back-up", library: "tabler", "aria-hidden": true) %> <% end %> <% end %> <%= button_to node_path(node), method: :delete, form: { data: { confirm: t(".confirm_delete", :title => title, :count => doomed_below) }, class: 'button_to destructive' }, "aria-label" => t(".delete_permanently"), title: t(".delete_permanently") do %> <%= icon("trash-x", library: "tabler", "aria-hidden": true) %> <% end %>
<%= will_paginate @nodes %> <% if @nodes.any? { |n| (n.draft || n.head)&.parent_node_missing? } %>

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

<% end %> <% end %>