Files
fizzy/app/views/cards/container/_status.html.erb
T
2025-09-02 20:11:34 -05:00

17 lines
828 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<% if @card.creating? && @card.can_recover_abandoned_creation? %>
<div class="card__banner min-width max-width" style="--card-color: <%= @card.color %>;">
<span class="overflow-ellipsis">You have an unsaved card. Would you like to continue where you left off?</span>
<%= button_to card_recover_path(@card), class: "btn txt-small", data: { turbo_action: "replace" } do %>
<span>Restore</span>
<% end %>
</div>
<% end %>
<% if @card.drafted? %>
<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 %>
<span>Post to project</span>
<% end %>
</div>
<% end %>