From 239b0a430d063e0249ff351109da3adf18fb5312 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Fri, 11 Apr 2025 12:48:24 -0500 Subject: [PATCH] Don't show the engagement toggle on closed cards --- app/views/cards/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/cards/show.html.erb b/app/views/cards/show.html.erb index c4a621a00..cae272b79 100644 --- a/app/views/cards/show.html.erb +++ b/app/views/cards/show.html.erb @@ -23,7 +23,7 @@ <%= link_to_home %> <%= link_to_back fallback_path: cards_path(collection_id: @card.collection) %> - <% if @card.published? %> + <% if @card.published? && !@card.closed? %>
<%= form_with url: card_engagement_path(@card), method: :delete, data: { controller: "form" } do |form| %>