<%= messages_tag(card) do %>
  <% if card.published? %>
    <%= render partial: "cards/comments/comment", collection: card.comments.chronologically, cached: true %>
    <%= render "cards/comments/new", card: card %>

    <%= render "cards/comments/watchers", card: card %>
  <% end %>

  <footer class="delete-card txt-align-center full-width flex flex-column margin-block-start-double">
    <hr class="separator--horizontal full-width margin-block" style="--border-color: var(--color-ink-lighter)">
    <%= button_to_delete_card(@card) %>
  </footer>
<% end %>
