19051aec3e
This implements a simple strategy to optimistically insert cards in columns without waiting for the column refresh. Cards will be placed at the top respecting golden cards. This uses sorting by "created at" with sorting by "updated at" for the _Not now_ column, so that the treatment everywhere is homogenous.
24 lines
715 B
Plaintext
24 lines
715 B
Plaintext
<% @page_title = "Column: #{ @column.name }" %>
|
|
|
|
<% content_for :header do %>
|
|
<div class="header__actions header__actions--start">
|
|
<%= link_back_to_board(@column.board) %>
|
|
</div>
|
|
|
|
<h1 class="header__title divider divider--fade full-width">
|
|
<span class="overflow-ellipsis"><%= @page_title %></span>
|
|
</h1>
|
|
<% end %>
|
|
|
|
<section class="cards cards--grid">
|
|
<%= turbo_frame_tag @column, :cards do %>
|
|
<% if @page.used? %>
|
|
<%= with_automatic_pagination dom_id(@column, :cards), @page do %>
|
|
<%= render "boards/columns/list", cards: @page.records, draggable: true %>
|
|
<% end %>
|
|
<% else %>
|
|
<%= render "boards/columns/empty_placeholder" %>
|
|
<% end %>
|
|
<% end %>
|
|
</section>
|