Inline anemic partial

This commit is contained in:
David Heinemeier Hansson
2025-04-15 16:32:56 +02:00
parent b9f5293231
commit ac65f39c0d
2 changed files with 4 additions and 4 deletions
-3
View File
@@ -1,3 +0,0 @@
<%= button_to card_publish_path(card), class: "btn txt-small btn--link", style: "--btn-background: #{card.color}" do %>
<span>Post to project</span>
<% end %>
+4 -1
View File
@@ -16,7 +16,10 @@
<div class="fill-selected position-sticky flex align-center gap-half fill-highlight justify-center border-block margin-block-end"
style="view-transition-name: draft-banner;">
This is a draft, its only visible to you.
<%= render "cards/publish", card: @card %>
<%= button_to card_publish_path(@card), class: "btn txt-small btn--link", style: "--btn-background: #{@card.color}" do %>
<span>Post to project</span>
<% end %>
</div>
<% end %>