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

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

  <% if Current.user.can_administer_card?(card) %>
    <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)">
      <%= render "cards/delete", card: card %>
    </footer>
  <% end %>
<% end %>
