5cb7643274
* main: (21 commits) Migration to migrate URLs after renaming bubbles => cards Remove migration Restore bubbles.css since some styles are used Fix issues with styling card__ components Remove bubbles.css Fix renames that the scripts missed Reorganize templates to remove cards/cards redundancy Rename bubbles => cards Safari sure loves outlines Use a number field, and improve focus styles Fix boosting via number input Embed additional video formats Fix that notifications weren't marked as read Fix tray item position Update House to bring patch for history restoration error Tighten up Restore additional missing routes removed inc0f3ff46d7Retore route removed inc0f3ff46d7Fix visual regression in popup menus Perma cards should not always be 100% width ...
31 lines
1.5 KiB
Plaintext
31 lines
1.5 KiB
Plaintext
<div class="card__actions-container center border-radius flex-inline align-center justify-center gap" style="--card-color: <%= @card.color %>">
|
|
<% if card.closed? %>
|
|
<span class="card__closure-message">Completed by <%= card.closed_by.name %> on <%= local_datetime_tag(card.closed_at, style: :shortdate) %>.</span>
|
|
<%= button_to card_closure_path(card), method: :delete, class: "btn btn--plain borderless fill-transparent" do %>
|
|
<span>Un-do</span>
|
|
<% end %>
|
|
<% else %>
|
|
<details class="expander" data-controller="details" data-details-target="details" data-action="keydown.esc->details#close click@document->details#closeOnClickOutside">
|
|
<summary class="expander__button btn borderless">
|
|
Close as
|
|
<%= icon_tag "caret-down" %>
|
|
</summary>
|
|
<div class="expander__content btn borderless">
|
|
<% Current.account.closure_reasons.labels.each do |label| %>
|
|
<%= button_to card_closure_path(card, reason: label), class: "expander__item btn" do %>
|
|
<span class="overflow-ellipsis"><%= label %></span>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</details>
|
|
|
|
<span class="card__closure-message">
|
|
<% if card.doing? %>
|
|
Returns to <em>Considering</em> if no activity <%= local_datetime_tag(card.auto_reconsider_at, style: :indays) -%>.
|
|
<% else %>
|
|
Auto-closes if no activity <%= local_datetime_tag(card.auto_close_at, style: :indays) -%>.
|
|
<% end %>
|
|
</span>
|
|
<% end %>
|
|
</div>
|