From ac65f39c0dc26488ec66288a4a051d8e2e9200fb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 15 Apr 2025 16:32:56 +0200 Subject: [PATCH] Inline anemic partial --- app/views/cards/_publish.html.erb | 3 --- app/views/cards/show.html.erb | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 app/views/cards/_publish.html.erb diff --git a/app/views/cards/_publish.html.erb b/app/views/cards/_publish.html.erb deleted file mode 100644 index 1f2199ece..000000000 --- a/app/views/cards/_publish.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -<%= button_to card_publish_path(card), class: "btn txt-small btn--link", style: "--btn-background: #{card.color}" do %> - Post to project -<% end %> diff --git a/app/views/cards/show.html.erb b/app/views/cards/show.html.erb index f0151c3ce..f1f2ea95a 100644 --- a/app/views/cards/show.html.erb +++ b/app/views/cards/show.html.erb @@ -16,7 +16,10 @@
This is a draft, it’s 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 %> + Post to project + <% end %>
<% end %>