74d1571b19
* main: (45 commits) Fix tests Rework min card design and meta section for all cards Move `title` to the `img` element so we get hover in both cases Remove sorting filter UI Sort Considering and Doing by `updated_at` Restore comment action icon Fix dot escaping container Seen cards should be flat Ensure overflow cards are hidden Arrow needs to match derived color Dialog target needs to be present This isn't necessary in the mini card template Revert "The button and dialog need not render in previews" Paginate collection cards Add a rails helper for the new custom stream action Add test Reflect picked color automatically with a custom stream action Simplify conditions to pick up a color Reuse existing constant Update fixtures and test ...
42 lines
1.7 KiB
Plaintext
42 lines
1.7 KiB
Plaintext
<nav class="align-start">
|
|
<%= link_to_home %>
|
|
|
|
<div class="btn btn--placeholder"></div>
|
|
<div class="btn btn--placeholder flex-item-justify-start"></div>
|
|
|
|
<header class="flex flex-inline flex-column center flex-shrink">
|
|
<div class="card-filter--collection flex-inline center position-relative" data-controller="dialog" data-action="keydown.esc->dialog#close click@document->dialog#closeOnClickOutside">
|
|
<button class="txt-align-center input input--select borderless center txt-medium" data-action="click->dialog#open:stop">
|
|
<h1 class="txt-large overflow-ellipsis margin-none">
|
|
<%= filter_title filter %>
|
|
</h1>
|
|
</button>
|
|
|
|
<dialog class="events__popup popup panel flex-column align-start gap-half fill-white shadow" data-dialog-target="dialog" data-action="turbo:before-cache@document->dialog#close">
|
|
<strong class="popup__title margin-block-start-half pad-inline-half">In Collection</strong>
|
|
|
|
<%= render "cards/index/collections_filter", filter: filter %>
|
|
</dialog>
|
|
</div>
|
|
</header>
|
|
|
|
<% if collection = filter.single_collection %>
|
|
<div class="flex-item-justify-end">
|
|
<%= access_involvement_advance_button collection, Current.user %>
|
|
</div>
|
|
|
|
<%= link_to edit_collection_path(collection), class: "btn" do %>
|
|
<%= icon_tag "settings" %>
|
|
<span class="for-screen-reader">Settings for <%= collection.name %></span>
|
|
<% end %>
|
|
|
|
<%= button_to collection_cards_path(collection), method: :post, class: "btn" do %>
|
|
<%= icon_tag "add" %>
|
|
<span class="for-screen-reader">Create a new card</span>
|
|
<% end %>
|
|
<% else %>
|
|
<div class="btn btn--placeholder flex-item-justify-end"></div>
|
|
<div class="btn btn--placeholder"></div>
|
|
<% end %>
|
|
</nav>
|