<% @page_title = "Column: Done" %>

<% content_for :header do %>
  <div class="header__actions header__actions--start">
    <%= back_link_to @board.name, published_board_url(@board), "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %>
  </div>

  <h1 class="header__title divider divider--fade full-width" data-bridge--title-target="header">
    <span class="overflow-ellipsis"><%= @page_title %></span>
  </h1>
<% end %>

<section class="cards cards--grid">
  <%= turbo_frame_tag :closed_column do %>
    <div class="cards__list hide-scrollbar">
      <% if @page.used? %>
        <%= with_automatic_pagination :closed_column, @page do %>
          <%= render "cards/display/public_previews", cards: @page.records %>
        <% end %>
      <% else %>
        <div class="blank-slate">No cards here</div>
      <% end %>
    </div>
  <% end %>
</section>

<% content_for :footer do %>
  <%= render "public/footer" %>
<% end %>
