Remove unused partials
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
<div class="card card--mini border flex flex-column gap position-relative txt-align-start full-width border-radius fill-white" style="--card-color: <%= card.color %>; view-transition-name: <%= dom_id(card, :ticket) %>;">
|
||||
<header class="card__header flex align-center gap min-width">
|
||||
<span class="card__collection txt-uppercase overflow-ellipsis txt-reversed">
|
||||
<%= card.collection.name %>
|
||||
</span>
|
||||
|
||||
<div class="overflow-ellipsis"><%= render "cards/display/mini/tags", card: card %></div>
|
||||
</header>
|
||||
|
||||
<div class="card__body flex flex-column gap-half full-width flex-item-grow min-width max-width">
|
||||
<div class="flex align-center gap min-width margin-block-end-half">
|
||||
<h3 class="card__title overflow-ellipsis">
|
||||
<%= card_title(card) %>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<%= render "cards/display/mini/meta", card: card %>
|
||||
</div>
|
||||
|
||||
<%= link_to collection_card_path(card.collection, card), class: "card__link" do %>
|
||||
<span class="for-screen-reader"><%= card_title(card) %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -1,36 +0,0 @@
|
||||
<% cache pin do %>
|
||||
<%= tag.div id: dom_id(pin), class: "pin tray__item txt-normal" do %>
|
||||
<%= link_to collection_card_path(pin.card.collection, pin.card),
|
||||
class: "pin__content shadow fill-white flex align-start txt-align-start gap flex-item-grow max-width border border-radius txt-ink overflow-clip",
|
||||
data: { action: "click->dialog#close", turbo_frame: "_top" },
|
||||
style: "--card-color: #{ pin.card.color };" do %>
|
||||
<div class="flex flex-column min-width flex-item-grow">
|
||||
<div class="pin__header flex gap-half align-center txt-uppercase">
|
||||
<div class="pin__collection flex-inline flex-item-justify-start txt-reversed min-width txt-xx-small">
|
||||
<span class="txt-xx-small overflow-ellipsis"><%= pin.card.collection.name %></span>
|
||||
</div>
|
||||
|
||||
<% if pin.card&.stage %>
|
||||
<strong class="pin__stage border txt-tight-lines flex-item-justify-end txt-xx-small">
|
||||
<%= pin.card&.stage&.name %>
|
||||
</strong>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<strong class="pin__title overflow-ellipsis txt-small"><%= card_title(pin.card) %></strong>
|
||||
|
||||
<div class="tray__item-meta flex align-end gap-half txt-tight-lines">
|
||||
<div class="translucent">
|
||||
<span>Updated</span> <%= local_datetime_tag(pin.card.updated_at, style: :ago) -%>
|
||||
</div>
|
||||
|
||||
<%= " · " if pin.card.tags.any? %>
|
||||
<div class="overflow-ellipsis pin__tags txt-uppercase">
|
||||
<%= "#" if pin.card.tags.any? %>
|
||||
<%= pin.card.tags.map(&:title).join(", ") %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user