e27c0c5fa1
The public closed column was showing draft cards because it queried `@board.cards.closed` without a `.published` filter. This adds the missing `.published` scope to match the pattern used elsewhere in the public controllers. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
906 B
Plaintext
19 lines
906 B
Plaintext
<section id="closed-cards" class="cards cards--closed is-collapsed" style="--card-color: var(--color-card-complete);"
|
|
data-collapsible-columns-target="column"
|
|
data-action="turbo:before-morph-attribute->collapsible-columns#preventToggle"
|
|
>
|
|
|
|
<div class="cards__transition-container">
|
|
<header class="cards__header">
|
|
<%= render "boards/show/expander", title: "Done", count: board.cards.closed.published.count, column_id: "closed-cards" %>
|
|
|
|
<%= link_to public_board_columns_closed_url(board.publication.key), class: "cards__maximize-button btn btn--circle txt-x-small borderless", data: { turbo_frame: "_top" } do %>
|
|
<%= icon_tag "grid", class: "translucent" %>
|
|
<span class="for-screen-reader">Maximize column</span>
|
|
<% end %>
|
|
</header>
|
|
|
|
<%= column_frame_tag :closed_column, src: public_board_columns_closed_path(board.publication.key) %>
|
|
</div>
|
|
</section>
|