Only show draft banner if the card had some data

This commit is contained in:
Jorge Manrubia
2025-11-03 14:41:27 +01:00
parent 2d1619fd34
commit 111d4900ef
+1 -1
View File
@@ -1,4 +1,4 @@
<% if card.drafted? %>
<% if card.drafted? && (card.title.present? or card.description.present?) %>
<div class="card__banner min-width max-width" style="--card-color: <%= card.color %>;">
<span class="overflow-ellipsis">This is a draft, its only visible to you.</span>
<%= button_to card_publish_path(@card), class: "btn txt-small", style: "--btn-background: #{card.color}" do %>